This project serves as a sample RESTful API built with Express.js, tailored for the Google Developer Group on Campus at Srivijaya State Polytechnic. It is specifically designed for the "Creating your RESTful API with Express.js" study jam.
This API provides basic CRUD (Create, Read, Update, Delete) operations for managing todos. It's intended to be a hands-on learning resource for students to understand the fundamentals of building APIs with Express.js.
- Express.js: A fast, unopinionated, minimalist web framework for Node.js.
- Node.js: JavaScript runtime environment.
- Prisma ORM: Database ORM For Nodejs
- Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/notilmi/gdgoc-studyjam-express-example cd gdgoc-studyjam-express-example -
Install the dependencies:
npm install
-
Copy env:
mv .env.example .env
-
Push Database schema to Database:
npx prisma db push
To start the server, use the following command:
npm run start