https://github.com/theanujdev/agro-rent-backend
Backend server of agro rent app built with Express, Prisma & PostgresSQL
https://github.com/theanujdev/agro-rent-backend
expressjs nodejs postgresql prisma
Last synced: 3 months ago
JSON representation
Backend server of agro rent app built with Express, Prisma & PostgresSQL
- Host: GitHub
- URL: https://github.com/theanujdev/agro-rent-backend
- Owner: theanujdev
- License: mit
- Created: 2021-12-05T15:57:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T12:23:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T06:58:18.166Z (4 months ago)
- Topics: expressjs, nodejs, postgresql, prisma
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Agro Rent (Backend)
## Overview
This portal allows users to view available agricultural equipments in their area (using pincode) and rent them.
## Tech Stack
**Client :** React, Axios, Bootstrap, React-router v6
**Server :** Express, Prisma, PostgreSQL
## Features
- Simple bootstrap UI
- Area-wise availability using pincode
- Scalable database using Postgres
- Rent and view products## Run Locally
- Clone the project
```bash
git clone https://github.com/theanujdev/agro-rent-backend
```- Go to the project directory
```bash
cd agro-rent-backend
```- Install dependencies
```bash
yarn install
```- Create a new file `.env`. Copy all the content from `.env.example` and paste it into `.env`. Change the following environment variables in your `.env` file
`DATABASE_URL`, `PORT`
- Start the server
```bash
yarn dev
```> **Note:** Make sure to run **PostgreSQL** server in the background.
You need to run [Agro Rent Frontend](https://github.com/theanujdev/agro-rent-frontend) to use it.
## Optimizations
Project structure is optimized for scalability. Following the ER diagram, database has 4 tables with relations. Routes, controllers, schema, config are all separated. Few utility classes and functions like http-errors, morgan, etc. have also been used.
## Feedback
If you have any feedback, please reach out at [@theanujdev](https://twitter.com/theanujdev)
## Authors
- [@theanujdev](https://www.github.com/theanujdev)
## License
[MIT](https://choosealicense.com/licenses/mit/)