An ecommerce platform to buy and sell books. Watch the demo of the project at [https://youtu.be/XWo0PKRS6GU]
-User Authentication [login, register]
-View and Search Books
-Cart Management
-Order creation
-Create,Edit,Delete Book Listings
JWT Authentication using SimpleJWT package
Documentation made using Swagger docs
Frontend made with React, React-Bootstrap, and Vite.
Pre requisites:
- Create a folder and clone the repo
git clone https://github.com/Nandagopalvs25/BookStore
- Install Virtual env to create a python virtual environment
cd Bookstore
pip install virtualenv
python<version> -m venv <virtual-environment-name>
env/Scripts/activate.bat //Activate virtual env In CMD
env/Scripts/Activate.ps1 //Activate virtual env In Powershel
- Install dependencies for the api
pip install -r requirements.txt
- Create a new PostgreSQL database using createdb or the pgAdmin tool
createdb --username=postgres <db_name>
- Create a .env file in the backend dir and set the enviornment variables for the database
DB_NAME=
DB_USER=
DB_PWD=
DB_HOST=
DB_PORT=
- Apply migrations
python manage.py migrate
- Run the server using
python manage.py runserver
The api should be up and runnning
- Cd into the frontend dir and run
npm install
npm run dev
Click on the link to view the website in the browser.