Before you clone Install Python and NodeJS. Try get the newest versions available.
If the website doesnt run with them, install the versions I have below.
- Python_Version=3.8.4
- NodeJs=12.18.2 | yarn=1.22.4
> 1- git clone https://github.com/xander1421/Django-GraphQL-React.git
> 2- Install dependencies:
> 2.1- in the terminal run=> pip install -r ./utils/requirements.txt
> 2.2- in the terminal run=> yarn install
> 3- If the dependencies were installed was successfully, you can now start the 2 servers and test the app
> 3.1- Django-Start-Server: in the terminal run=> python manage.py runserver
> 3.2- React-Start-Server: yarn start
If you dont want to have to deal with dependencies, I can understand you. Thats why I created Docker images for each of the servers.
> 2- Run command in terminal: docker build -t backend:latest .
> 2.1- To run the image: docker run -i -p 8000:8000 backend:latest
> 3- Run command in terminal: docker build -t frontend:latest .
> 2.1- To run the image: docker run -i -p 8080:8080 frontend:latest
========|========|========|========|========|========|========|========|========
4- If the server was installed and running on your PC or in a Docker image you can now navigate to the page: http://localhost:8080/