This project is a web application built with a client-server architecture. The backend server is developed using Express.js, while the frontend client is powered by Next.js. The application manages various entities such as users, profiles, customers, companies, products, projects, documents, and orders, which are represented using Prisma models.
- Project Overview
- Installation
- Usage
- API Endpoints
- License
-
Clone the repository:
-
Install dependencies:
- cd server
- pnpm install
-
Set up the database:
- Update the
.env
file with your database connection details and run the following command to migrate the database: - npx prisma migrate dev
- Update the
-
Start the development server:
- npm run dev
Once the server is running, you can access the client-side application at http://localhost:3000
and interact with the API at http://localhost:5000/api
.
- GET /api/users: Retrieve a list of all users.
- POST /api/users: Create a new user.
- GET /api/customers: Retrieve a list of all customers.
- POST /api/customers: Create a new customer.
- GET /api/orders: Retrieve a list of all orders.
- POST /api/orders: Create a new order.
- GET /api/documents: Retrieve a list of all documents.
- POST /api/documents: Create a new document.
This project is licensed under the MIT License. See the LICENSE file for more information.