- Clone the repo:
git clone git@github.com:sf27/Django-GraphQL-Project.git - Build the docker image:
cd Django-GraphQL-Project/ && docker-compose build - Starts the containers in the background and leaves them running:
docker-compose up -d - Run the migrations:
docker-compose run --rm django python manage.py migrate - Load test data:
docker-compose run --rm django python manage.py loaddata ingredients - Create SuperUser (Optional):
docker-compose run --rm django python manage.py createsuperuser - Open the following URL:
http://127.0.0.1:8000/graphiql
- Clone the repo:
git clone git@github.com:sf27/Django-GraphQL-Project.git - Create a virtualenv and activate it:
cd Django-GraphQL-Project && virtualenv -p python3 env && source env/bin/activate - Install the dependencies:
pip install -r requirements.txt - Run the migrations:
cd backend && python manage.py migrate - Load test data:
python manage.py loaddata ingredients - Create SuperUser (Optional):
python manage.py createsuperuser - Run the development server:
python manage.py runserver - Open the following URL:
http://127.0.0.1:8000/graphiql