This is the backend for the Todo App, built with Node.js, Express, and TypeScript.
-
Clone the repository:
git clone https://github.com/abubakar7033/Back-End.git cd Back-End
-
Install the dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the necessary environment variables. For example:PORT=8080 DATABASE_URL=your_database_url
-
Generate the Prisma client:
npx prisma generate
-
Apply database migrations:
npx prisma migrate dev --name init
To start the server, run:
npm run start
The server will be running on http://localhost:8080
.
To run test cases
npm run test