Skip to content

Commit 734f02d

Browse files
authored
📖 DOC: Environment Installation instructions
1 parent 9fe4382 commit 734f02d

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

README.md

+28-13
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
1-
# react-django-graphQL-postgres
1+
# Coding Challenge
22
GraphQL API in Django
3-
- Nisha Chaube
3+
- Nisha Chaube
44

5+
Method 1:
56
## Setting up using Docker
6-
Note: Below step may take some time
7+
Note: Below steps may take some time
78

8-
docker-compose up
9+
docker-compose up -d
910

10-
docker ps
11+
docker ps
1112

12-
<!-- Login to react-django-graphql-postgres_core image -->
13+
<!-- Login to react-django-graphql-postgres_core image -->
1314

14-
docker exec -it ####### /bin/bash
15+
docker exec -it ####### /bin/bash
1516

16-
python manage.py makemigrations
17+
python manage.py makemigrations
1718

18-
python manage.py migrate
19+
python manage.py migrate
1920

20-
python manage.py loaddata ./Fixtures/initial_data.json
21-
22-
Django server url: http://127.0.0.1:8000/graphql/
23-
React frontend url: http://localhost:3000/
21+
python manage.py loaddata ./Fixtures/initial_data.json
2422

23+
Django server url: http://127.0.0.1:8000/graphql/ <br />
24+
React frontend url: http://localhost:3000/
25+
26+
27+
######################################################################
28+
Method 2:
2529
## Setting up Python environment
2630

2731
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 <br />
@@ -87,3 +91,14 @@ DATABASES = {
8791
```SQL
8892
grant all privileges on database postgres to postgres
8993
```
94+
95+
## Setting up Python environment
96+
<br />
97+
98+
```
99+
cd ui
100+
101+
npm install
102+
103+
npm start
104+
```

0 commit comments

Comments
 (0)