Skip to content

E-Nursery application where users can signup/signin 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.

mnamegaurav/e-nursery

Repository files navigation

E-Nursery

Application overview -

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.

Live ✨

You can checkout the project live here 👈

The Backend is deployed here

Features ℹ️

✔️ Robust and Secure APIs

✔️ Authentication System

✔️ CURD Operations

✔️ Buying a Plant, Cart System

API Endpoints -

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/

Set this project locally 💻

  1. Fork this Repository (or Download the Zip file directly and start from the step 3).

  2. Open terminal / command prompt and Clone the project using

    git clone https://github.com/mnamegaurav/e-nursery.git
  3. Create a python3 virtual environment:

    $ python3 -m venv venv

    Or, use virtualenv:

    $ virtualenv venv
  4. Activate the virtual environment:

    On Linux or Mac or any Unix based system-

    $ source venv/bin/activate

    On Windows-

    > venv\Scripts\activate
    
  5. Now Install the dependecies:

    $ pip install -r requirements.txt
  6. Creating local settings: Create a local_settings.py file in the same directory where your settings.py resides.

    Copy this code in your local_settings.py file -

    DEBUG = True
    
  7. Creating .env file: Create a .env file in the same directory where your manage.py resides.

    Copy this text in your .env file -

    SECRET_KEY = 'secretkey'
    
  8. Run the migrate command:

    $ python manage.py migrate
  9. Now you are ready to go:

    Run the application

    $ python manage.py runserver

Thanks

About

E-Nursery application where users can signup/signin 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.

Topics

Resources

Stars

Watchers

Forks