GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nextorders/api: Frontend needs data from backend: categories, products, checkouts, etc.

This repository was archived by the owner on Mar 13, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

161 Commits
161 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
prisma
prisma
 
 
sdk
sdk
 
 
src
src
 
 
test
test
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
nest-cli.json
nest-cli.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

API

Frontend needs data from backend: categories, products, checkouts, etc.

This part of product is for first frontend: https://github.com/next-orders/v1

next-orders-entities

Stack

  • Node.js
  • NestJS
  • Express
  • Prisma ORM
  • TypeScript
  • PostgreSQL as DB

How to develop

Clone this repo and use standard commands:

npm i

# Development
npm run start

# Watch mode
npm run start:dev

One moment: default port is 4001

How to test

# Unit tests
npm run test

# e2e tests
npm run test:e2e

# Test coverage
npm run test:cov

How to deploy

You can use latest Docker Image:

docker pull ghcr.io/next-orders/api:latest

# or use the specific version
docker pull ghcr.io/next-orders/api:v0.1.0

You need to use env variables:

API_URL= # URL of this Main API

DATABASE_URL= # PostgreSQL connection URL for Prisma

JWT_SECRET= # Secret string
JWT_EXPIRATION_TIME= # Example, "30d"

AWS_ACCESS_KEY_ID= # S3 Config
AWS_SECRET_ACCESS_KEY= # S3 Config
AWS_S3_REGION= # S3 Config
AWS_S3_BUCKET_NAME= # S3 Config
CUSTOM_S3_ENDPOINT= # Optional

DEMO_AUTH_EMAIL= # Optional, used on Command Center Login Page
DEMO_AUTH_PASS= # Optional, used on Command Center Login Page

Check .env.example in root dir for more info about env.

On Kubernetes you can use health check of container:

livenessProbe:
  httpGet:
    port: 4001
    path: /api/health
  initialDelaySeconds: 20
  periodSeconds: 30

License

This project is licensed under the MIT License - see the MIT License file for details.

About

Frontend needs data from backend: categories, products, checkouts, etc.

v1.next-orders.org/api

Topics

apiapi-restnestnestjsnodejsprismaprisma-orms3s3-storage

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.