Task project
- Docker & Docker-compose
- Python 3.7
- Git
-
Firstly clone the project
-
Goto the project root directory and copy the environment file following the command
cp .env .env
- update env variable based on docker network host
-
Run the docker following the command
docker-compose build
thendocker-composer up
-
After the completed check the docker container list
docker ps
-
Migrate db Using docker container
docker-compose run app /usr/local/bin/python manage.py migrate
-
Run the app using docker container
docker-compose run app /usr/local/bin/python manage.py runserver
-
Finally run the project with the following url
http://0.0.0.0:8000/
-
Firstly clone the project
-
Goto the project root directory and copy the environment file following the command
cp .env .env
- Update the postgres database name, host, username, password and schema name or public schema
-
Install the python dependencies following the command
pip install -r requirements.txt
-
Migrate the database
python manage.py migrate
-
Added users from management command
python manage.py add_user
-
Finally run the local server
python manage.py runserver
-
Install rabbitmq server locally
- For ubuntu user
sudo apt-get install rabbitmq-server
- For ubuntu user
-
Run this command in Terminal
celery -A task_project worker --loglevel=info
- python manage.py test survey.tests