geekyabhi / DPhi-Task

An online nursery marketplace API where users can signup, log in, view, and order plants available in different nurseries.

Home Page:https://nursery-django.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DPhi Assignment for SDE 1 - Backend

Objective -

Create an online nursery marketplace API where users can signup, login, view, and order plants available in different nurseries.

Application overview -

  • Users should be able to 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 Links -

Run in Postman

See Demo Video here

Demo Credentials -

Username: admin Email: admin@gmail.com Password: admin

Setup Instructions

First make sure that you have the following installed.

  • Python 3 and virtualenv

Now do the following to setup project

# assuming that the project is already cloned.

cd nursery

# one time
virtualenv -p $(which python3) pyenv

source pyenv/bin/activate

# one time or whenever any new package is added.
pip install -r requirements/dev.txt

# update settings
cp src/nursery/settings/local.sample.env src/nursery/settings/local.env

# generate a secret key or skip(has a default value) and then replace the value of `SECRET_KEY` in environment file(here local.env)
./scripts/generate_secret_key.sh

# update relevant variables in environment file

# run migrate
cd src
python manage.py migrate

To access webserver, run the following command

cd src
python manage.py runserver

About

An online nursery marketplace API where users can signup, log in, view, and order plants available in different nurseries.

https://nursery-django.herokuapp.com/

License:MIT License


Languages

Language:Python 96.9%Language:Shell 3.1%