Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naufal-yafi/medium-tutorial-bikin-restful-api
Bikin RESTful API
https://github.com/naufal-yafi/medium-tutorial-bikin-restful-api
express-js javascript medium-article restful-api tutorial
Last synced: 27 days ago
JSON representation
Bikin RESTful API
- Host: GitHub
- URL: https://github.com/naufal-yafi/medium-tutorial-bikin-restful-api
- Owner: naufal-yafi
- Created: 2023-12-31T01:15:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-01T02:08:25.000Z (10 months ago)
- Last Synced: 2024-01-01T10:21:12.392Z (10 months ago)
- Topics: express-js, javascript, medium-article, restful-api, tutorial
- Language: JavaScript
- Homepage: https://medium.com/@muhammadnaufalyafi00/cara-mudah-membuat-restful-api-menggunakan-expressjs-dan-prisma-0496472e89ce
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExpressJS + Prisma
Jika teman - teman ingin menggunakan repository ini, bisa melakukan perintah sebagai berikut.
1. Clone Repository
Pastikan sudah menginstall git bash. [[Downlad Git Bash]](https://git-scm.com/downloads)
```sh
git clone https://github.com/naufal-yafi/medium-tutorial-bikin-restful-api.git
```2. Download Semua Library
Pastikan sudah menginstall NodeJS. [[Downlad NodeJS]](https://nodejs.org/en)
```sh
npm i
```3. Membuat database
Buatlah sebuah database dengan nama `medium-restful-api` atau jika ingin diganti nama databasenya, tolong untuk tidak lupa mengubah konfigurasi pada file `.env`
4. Migrate database
```sh
npx prisma migrate dev init
```5. Jalankan server
```sh
npm run dev
```