An attendance application RESTful API was built using Express and TypeScript.
Before setting up the project, make sure your system meets the following requirements:
- Node: 20
- Express: 4
- MySQL: ^5.7
- Redis: 7.4
- ElasticSearch: 8.5
Follow the steps below to set up the project on your local machine.
-
Clone the repository:
git clone https://github.com/Devajayantha/express-clock.git
-
Navigate into the project directory:
cd express-clock
-
Install the required dependencies using npm:
npm install
-
Copy the
.env.example
file to.env
:cp .env.example .env
-
Set up the database:
- Configure your database connection in the
.env
file. - Run migrations to create the necessary tables:
npx prisma migrate deploy
- Configure your database connection in the
-
Run the seeder if needed:
npx prisma db seed
-
Run project on deplopment mode:
npm run start
Here’s some screenshoot from my work.