https://github.com/sagar285/crm
https://github.com/sagar285/crm
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sagar285/crm
- Owner: sagar285
- Created: 2025-02-17T09:41:05.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-17T09:42:41.000Z (4 months ago)
- Last Synced: 2025-02-17T10:23:10.869Z (4 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 My Next.js App
This is a **Next.js** application integrated with **Prisma** for database management.
## 📌 Features
- 🔥 Next.js for fast rendering
- 🗄️ Prisma for database interaction with postgresql
- 🔐 Authentication (if applicable)
- 🎨 Tailwind CSS (if used)
- ⚡ Optimized API routes---
## 🛠️ Installation & Setup
Follow these steps to set up the project on your local machine:
### 1️⃣ Clone the Repository
```sh
git clone https://github.com/sagar285/crm.git
cd crmnpm install
## make connection with db
npx prisma generate## to setup model into db
npx prisma db push### to run this project
npm run dev## 📜 API Endpoints
# signup and login routes
POST /api/auth/register --- create a new user
SIGNIN Next-AUTH sign in setup
# plugin routes
POST /api/plugins --- create a new plugin
GET /api/plugins -- get all plugins
PUT /api/plugins/id -- update plugin
DELETE /api/plugins/id -- delete plugin
# install plugin
GET /api/user/plugins --- all user installed plugins
POST /api/plugins -- user installed plugins
# post routes
POST /api/posts --- create a new plugin
GET /api/posts -- get all plugins
PUT /api/posts/id -- update plugin
DELETE /api/posts/id -- delete plugin
# add plugin in post
POST /api/posts/plugins/id -- to add plugin in an post