Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/notties/pos-express-api

Learning Node.js+Next.js 2024 course
https://github.com/notties/pos-express-api

cors dayjs dotenv express jwt-token pdf-kit prisma

Last synced: about 1 month ago
JSON representation

Learning Node.js+Next.js 2024 course

Awesome Lists containing this project

README

        

# POS Express Rest API

### Required install
- [PostgreSQL](https://www.postgresql.org/)

### Create .env file

```env
SECRET_KEY='jwtsecret'
DATABASE_URL='postgresql://USER:PASSWORD@HOST:PORT/DATABASE'
```

### Install Dependencies
```bash
npm install
```

### Map data model to the database schema
```bash
npx prisma migrate dev --name init
```

### Running Locally
```bash
npm run dev
```

### Running Production
```bash
npm run start
```