https://github.com/itzaymvn/prisma-express
An Express.js, TypeScript, Prisma, and MySQL-based web app for user management with API endpoints.
https://github.com/itzaymvn/prisma-express
api-endpoints expressjs mysql prisma typescript user-management web-application
Last synced: about 1 year ago
JSON representation
An Express.js, TypeScript, Prisma, and MySQL-based web app for user management with API endpoints.
- Host: GitHub
- URL: https://github.com/itzaymvn/prisma-express
- Owner: itzAymvn
- License: mit
- Created: 2023-10-30T15:02:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T13:26:14.000Z (over 2 years ago)
- Last Synced: 2025-01-17T05:29:23.773Z (about 1 year ago)
- Topics: api-endpoints, expressjs, mysql, prisma, typescript, user-management, web-application
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What is this?
This project is a web application built with Express.js, TypeScript, and Prisma connected to a MySQL database. It provides API endpoints for basic user management operations, including fetching users, retrieving a single user, adding a new user, updating user details, and deleting a user.
## **Setting Up Your Project:**
1. **Install Dependencies:**
Use your preferred package manager to install the project dependencies.
```shell
# Using NPM:
npm install
# Using YARN
yarn install
# Using PNPM
pnpm install
```
2. **Configure Environment Variables:**
Create a `.env` file by copying the `.env.example` file and fill in the required values.
3. **Migrate Prisma Schema:**
Run Prisma migration to set up the database schema.
```shell
npx prisma migrate dev --name init
```
4. **Run the Development Server:**
Start the development server to see your project in action.
```shell
# Using NPM:
npm run dev
# Using YARN
yarn dev
# Using PNPM
pnpm dev
```
5. **Run the Production Server:**
Build the project and start the production server.
```shell
# Using npm
npm run build
npm run start
# Using yarn
yarn build
yarn start
# Using pnpm
pnpm build
pnpm start
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.