There is two seperate apps for both the frontend and the backend.
To setup the backend you need python3 and pip and then run the following:
pip install -r requirements.txt
Create the db:
python manage.py migrate
Run the server:
python manage.py runserver
The api will run on http://localhost:8000/api/menu/
For the frontend app, npm v6.9.0 and node v10.16.0 were used.
cd into the frontend directory and then start with installing dependencies:
npm install
Serving the frontend:
npm start
and then navigate to http://localhost:3000/
To Run the backend tests:
python manage.py test
To run the frontend tests:
npm test
- Add docker-compose for an easier setup/reusability
- Add more tests for the frontend components
- Seperate config for production and development for the django backend.
- [] Add ci