In this project I have used redux for authentication purpose. You can be familiar while going through the code. I have also included for concept of post that is, Post is been retrieved from the database and also can be added.
To run this project: Clone the repository
https://github.com/saurabhnk-94/School-Blog.git
Setting up your virtual environment:
python3 -m venv .env
Activate the Virtual Environment:
source .env/bin/activate
After all these steps go to the backend directory(School-Blog/backend) and there you can find a file called requirement.txt and then type the following code in your terminal:
pip3 install -r requirements.txt
Then to run the server, go to the directory 'School-Blog/backend/authentication/' and type the following code in terminal :
python3 manage.py runserver
Your server is set up with all the APIs active.
For Frontend which is ReactJS, Dependencies are:
"axios": "^0.19.1", "react": "^16.12.0", "react-dom": "^16.12.0", "react-redux": "^7.1.3", "react-router": "^5.1.2", "react-router-dom": "^5.1.2", "react-scripts": "0.9.5", "redux": "^4.0.5", "redux-thunk": "^2.3.0"
Kindly note redux is not implemented.
Go to 'School-Blog/frontend/school/' and type the following code in the terminal:
npm install
Then to run the server, type the code in terminal:
npm start
The server has been set up and you are up to work on the application.
To make this project following Languages and Libraries have been used: Frontend : React Js; Backend : Python/Django; Database : PostgreSQL; Python : 3.6.8