Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ganesyk12/layered-architecture-rest-api

The project is a RESTful API using layered architecture with Express.js and Prisma.
https://github.com/ganesyk12/layered-architecture-rest-api

Last synced: 6 days ago
JSON representation

The project is a RESTful API using layered architecture with Express.js and Prisma.

Awesome Lists containing this project

README

        

# REST API Layered Architecture
[![wakatime](https://wakatime.com/badge/user/0a923d76-6b27-459d-9760-5d1bd59e376e/project/167e9886-e1c8-4fcf-ac07-2ed6caaa3db2.svg)](https://wakatime.com/@Zeglock_23/projects/hftfdvtlqi?start=2024-08-25&end=2024-08-31)

## Table of contents
* [General info](#general-info)
* [Technologies](#technologies)
* [Pre-Requisite](#pre-requisite)
* [Refference](#refference)
* [Sponsor](#thanks-for-supporting)

## General info
This is a simple project to create API.

## Technologies
This project was created using the following technologies:
| Tools && Package |Version |
|----------------|--------------------|
|Node |`^20.17.0` |
|Nodemon |`^3.1.4` |
|Express js |`^4.19.2` |
|Prisma ORM |`^5.18.0` |
|PostgreSQL |`^16.3` |

## Pre-Requisite
- Initialize your project directory
> npm init
- Install dependencies
> npm install express cors prisma dotenv
- Open prisma studio
> npx prisma studio
- Synchronize model schema
> npx prisma generate
- Running project
> node .

## Preview Result

![rest_1jpg](https://github.com/user-attachments/assets/16cbfcce-4414-41aa-b6ab-5ac1fe3b5c8e "Result Preview 1")

![rest_2jpg](https://github.com/user-attachments/assets/aa47dae0-d658-444c-8383-ea329185e7e5 "Result Preview 2")

## Refference
- [Express js Framework](https://expressjs.com/en/starter/installing.html)
- [Prisma ORM](https://www.prisma.io/docs/getting-started)
- Thanks for @theodevoid

## Thanks for Supporting
☕ [Click Here](https://www.paypal.com/paypalme/GYudhaKusuma)

> Author : [Ganes Yudha Kusuma](https://github.com/Ganesyk12)
> ©2024