Dev stack:
- django 3
- django rest api
- celery
- uwsgi
- postgres
- sendgrid
- rabbitmq
- redis
- docker
Install git on your system https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
git clone git@github.com:vtemelife/server.git
cd server
Install docker on your system https://runnable.com/docker/getting-started/
cp envsets/docker_dev.env .docker.env
docker-compose build
docker-compose up
brew install pyenv
brew install postgresql
brew install rabbitmq
brew services
brew services start postgresql
brew services start rabbitmq
apt...
Please, execute these commands to activate your pyenv (for bash just replace .zshrc with .bashrc)
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
eval "$(pyenv init -)"
pyenv install 3.7.4
pyenv shell 3.7.4
python -mvenv env
source env/bin/activate
cp envsets/local_dev.env .env
source .env
make install
createdb vteme_db
python manage.py migrate
make start
make test
pytest file/path/filename.py::ClassName::test_method
psql -f db_2019-09-04_15\:48.sql vteme_db