Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/notties/pos-express-api
- Owner: Notties
- Created: 2024-11-11T07:20:29.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T07:34:35.000Z (2 months ago)
- Last Synced: 2024-11-11T08:27:13.791Z (2 months ago)
- Topics: cors, dayjs, dotenv, express, jwt-token, pdf-kit, prisma
- Language: JavaScript
- Homepage:
- Size: 2.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```