This project is a Nest.js application that provides a comprehensive REST API for managing the staff table. The application is built using Node.js, TypeScript, and the TypeORM library for database interactions with MySQL.
The Nest Staff API allows you to perform CRUD operations on the staff table. The main features include:
- Retrieve all staff records
- Retrieve a single staff record by ID
- Create a new staff record
- Update an existing staff record by ID
- Delete a staff record by ID
To run this project, you need to have the following installed on your machine:
- Node.js v20.10 or later
- Yarn v1.22 or later
- MySQL 8
- Nest CLI
The application uses environment variables for configuration. Create a .env file in the root directory and add the following variables: