This project is in very early stages, it is to be refactored and prettified as well as dockerized in the coming days ;).
Prerequisits:
- Python 3.< installed
- Node.js and npm installed
Steps:
- Clone the repository,
git clone https://github.com/AryanGHM/DjangoRest-ListSerialization
cd DjangoRest-ListSerialization
- (Skip if you already have virtualenv installed)
pip install virtualenv
virtualenv venv
- Activate virtual env:
- (Windows PS) .\venv\Scripts\activate
- (Linux) source /venv/bin/activate
- Install python requirements:
pip install -r requirements.txt
cd restuser
python manage.py runserver
Now api is Running!- Now with the react app
cd frontend/src
npm install
npm start
- Now you can access react app at
http://localhost:3000/
and the API endpoint athttp://localhost:8000/books