- Notifications
You must be signed in to change notification settings - Fork0
codeanddraw/react-django-graphQL-postgres
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
GraphQL API in Django
- Nisha Chaube
Note: Below step may take some time
docker-compose up
docker ps
docker exec -it ####### /bin/bash
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata ./Fixtures/initial_data.json
Django server url:http://127.0.0.1:8000/graphql/React frontend url:http://localhost:3000/
To get this project up and running you should start by having Python installed on your computer. It's advised you create a virtual environment to store your projects dependencies separately. You can install virtualenv with
pip install virtualenvClone or download this repository and open it in your editor of choice. In a terminal (mac/linux) or windows terminal, run the following command in the base directory of this project
python -m venv venvThat will create a new foldervenv in your project directory. Next activate it with this command on mac/linux:
source venv/bin/activateThen install the project dependencies with
pip install -r requirements.txtNow you can run the project with this command
python manage.py runserversudo apt-get install libpq-dev python-devsudo apt-get install postgresql postgresql-contribBased on these settings insettings.py
DATABASES= {"default": {"ENGINE":"django.db.backends.postgresql","NAME": "postgres,"USER":"postgres","PASSWORD":"postgres","HOST":"db" }}
grant all privilegeson database postgres to postgres
About
GraphQL API in Django
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.