Users can signup and see all the plants available from different nurseries. They should also be able to add the plants to their cart and place orders. Nurseries should be able to signup and add plants to their shop. They should also be able to view orders placed by users.
You can checkout the project live here 👈
The Backend is deployed here
✔️ Robust and Secure APIs
✔️ Authentication System
✔️ CURD Operations
✔️ Buying a Plant, Cart System
Feature | Method | API |
---|---|---|
Signup | POST | /api/signup/ |
Signin | POST | /api/signin/ |
SignOut | POST | /api/signout/ |
SignOut | POST | /api/signout/ |
------ | ------ | ------ |
All Shops | GET | /api/shops/ |
Create a Shop | POST | /api/shop/create/ |
Retrieve, Update, Delete a Shop | GET,PUT,DELETE | /api/shop/<SHOP_ID>/ |
All Plants | GET | /api/plants/ |
Create a Plant | POST | /api/plant/create/ |
Retrieve a Plant | POST | /api/plant/<PLANT_ID>/ |
------ | ------ | ------ |
My Cart | GET, PUT | /api/me/cart/ |
------ | ------ | ------ |
My Orders | GET | /api/me/orders/ |
Create a New Order | POST | /api/me/order/create/ |
Retrieve or Cance an Order | GET, PUT | /api/me/order/<ORDER_ID>/ |
------ | ------ | ------ |
Get a Nursery Orders | GET | /api/nursery/orders/ |
-
Fork this Repository (or Download the Zip file directly and start from the step 3).
-
Open terminal / command prompt and Clone the project using
git clone https://github.com/mnamegaurav/e-nursery.git
-
Create a python3 virtual environment:
$ python3 -m venv venv
Or, use virtualenv:
$ virtualenv venv
-
Activate the virtual environment:
On Linux or Mac or any Unix based system-
$ source venv/bin/activate
On Windows-
> venv\Scripts\activate
-
Now Install the dependecies:
$ pip install -r requirements.txt
-
Creating local settings: Create a
local_settings.py
file in the same directory where yoursettings.py
resides.Copy this code in your
local_settings.py
file -DEBUG = True
-
Creating
.env
file: Create a.env
file in the same directory where yourmanage.py
resides.Copy this text in your
.env
file -SECRET_KEY = 'secretkey'
-
Run the
migrate
command:$ python manage.py migrate
-
Now you are ready to go:
$ python manage.py runserver