At a given time farmer equipment are idle during non-seasons. A platform that allows farmers to rent farming equipment for less during the off-season. A simple aggregation platform with call center support can function as booking equipment’s will help farmers make additional income.
- Problem Statement Code
- Features
- Technology Stack to be used
- GitHub Repository Structure
- Getting Started
- Team Members
- Maintainers
- Login/Sign Up.
- JWT Authentication.
- OTP Verification.
- Add Equipment details related to various categories like Crop Protection, Harvesting Equipment,etc
- Search equipments of a particular category using the title.
- Filter equipment based on their category, price, availability, etc.
- Book and rent equipment for off-season.
- Track booking requests.
- View the list of comments and replies related to particular posts.
- LimitOffsetPagination for custom pagination style.
- Support Centre
- Chat with owner and customer.
S.No. | Branch Name | Purpose |
---|---|---|
1. | master | contains all Frontend code |
2. | backend | contains all Backend code |
Fork Krishi Sadhan Backend repository and clone at your local
- Fork and Clone the repo using
$ git clone https://github.com/rudrakshi99/SIH2022.git
- Change Branch to
backend
using
$ git checkout backend
Creating Virtual Environment
A virtual environment is a tool that helps keep dependencies required and the project isolated. If you wish to install a new library and write
pip install name_of_library
on the terminal without activating an environment, all the packages will be installed globally which is not a good practice if you’re working with different projects on your computer.
If this sounds a bit complicated, don’t worry so much because a virtual environment is just a directory that will contain all the necessary files for our project to run.
Installing venv (required once)
Windows
py -m pip install --user virtualenv
py -m venv env
Linux
python3 -m pip install --user virtualenv
python3 -m venv env
You have to start virtual environment everytime you start new terminal -
Windows
Using gitbash
. env/Scripts/activate
Using Powershell
. env\Scripts\activate
Linux
source env/bin/activate
Windows
pip install -r requirements/base.txt
pip install -r requirements/local.txt
Linux
pip install -r requirements/base.txt
pip install -r requirements/local.txt
Configuring Environment Variables
Make environment file by copying the example file -
cd .envs/.local
cp .django .env
cp .postgres .env
Windows
py manage.py migrate
Linux
python3 manage.py migrate
Windows
py manage.py createsupeser
Linux
python3 manage.py createsupeser
Windows
py manage.py runserver
Linux
python3 manage.py runserver
deactivate
If you have installed new dependency, the pip freeze command lists the third-party packages and versions installed in the environment.
Windows
pip freeze > requirements/local.txt
Linux
pip3 freeze > requirements/local.txt
Everytime you change db models, you need to run makemigrations and migrate to update on database.
Windows
py manage.py makemigrations
py manage.py migrate
Linux
python3 manage.py makemigrations
python3 manage.py migrate
"Team Members"
S.No. | Name | Role | GitHub Username:octocat: |
---|---|---|---|
1. | Rudrakshi (Team Leader) | Backend Development | @rudrakshi99 |
2. | Sarthak Shukla | Frontend Development | @sarthakshukla1316 |
3. | Suyash Rastogi | Frontend Development | @suyashrastogi7 |
4. | Anmol Srivastava | Backend Development | @anmolsrivastava1 |
5. | Parth Sharma | ML Engineer | @ParthSharmaT |
6. | Kushal Gautam | UI Designer | @kushalgautam |
Rudrakshi 💻 |
Sarthak Shukla 💻 |
Anmol Srivastava 💻 |
Parth Sharma 💻 |
Kushal Gautam 💻 |
Suyash Rastogi 💻 |