Skip to content

Express-prismaORM with typescript CRUD Template

Notifications You must be signed in to change notification settings

ashaffah/express-typescript

Repository files navigation

express-typescript

About

This is template express typescript with prisma orm.

Feature API

  • Get All Data
  • Get Data By Id
  • Create Data
  • Update Data By Id
  • Hard Delete Data
  • Soft Delete Data
  • Restore All Data
  • Restore Data By Id
  • Get All Soft Deleted
  • Get Soft Deleted By Id

Contents

Getting Started

This project uses NPM or YARN as package manager.

Requirements

Node Version^18.16.0 or higher. If you haven't installed node js, please visit the link below:

https://nodejs.dev/en/download

NPM Version^8.11.0 or higher.

npm install -g npm

YARN tbd, because i'm not using yarn. But if you prefer use yarn follow this command:

npm install --global yarn

Install

Using NPM

npm install
#or
npm i

Using YARN

yarn install

Using Bun

bun install

Usage

Use this command to start the project

# Running the environment
# Using Nodemon
nodemon index
# using NPM
npm run start
# Using Bun
bun run start

Used technologies

Express.js With Typescript

Prisma ORM

Socket Io With Typescript

tRPC

PostgreSQL

License

MIT