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.
-
Install Dependencies:
Use your preferred package manager to install the project dependencies.
# Using NPM: npm install # Using YARN yarn install # Using PNPM pnpm install
-
Configure Environment Variables:
Create a
.env
file by copying the.env.example
file and fill in the required values. -
Migrate Prisma Schema:
Run Prisma migration to set up the database schema.
npx prisma migrate dev --name init
-
Run the Development Server:
Start the development server to see your project in action.
# Using NPM: npm run dev # Using YARN yarn dev # Using PNPM pnpm dev
-
Run the Production Server:
Build the project and start the production server.
# Using npm npm run build npm run start # Using yarn yarn build yarn start # Using pnpm pnpm build pnpm start
This project is licensed under the MIT License. See the LICENSE file for more information.