TodoMVC with React, Relay, Graphene and Django
You may need to change the permission of the scripts to run them.
chmod +x ./*.sh
./preinstall.sh
or
pip install -r 'requirements.txt'
cd relayTodo && npm install
python manage.py makemigrations
python manage.py makemigrations todos
python manage.py migrate
Start a local server:
./start.sh
or
python manage runserver
cd relayTodo && npm start
Now you can open your browser and visit localhost:3000
.
If at any time you make changes to the schema, stop the server,
regenerate relayTodo/data/schema.json
, and restart the server:
./updateSchema.sh