Skip to content

A reference example for TypeScript and Node with a detailed README describing how to use the two together.

License

Notifications You must be signed in to change notification settings

golery/goapi

 
 

Repository files navigation

WHAT IS THIS PROJECT

GOAPI API2 is the migration of Java Goapi. It's completely written in nodejs + typescript + expressjs

URL:

localhost:5000/api2/image/imgur

RELEASE

At local: ./script/build-image.sh ./script/push-image.sh Test image at local (with prod config) ./script/run-image.sh

DEPLOY to KOYEB

Deployed to https://app.koyeb.com Copy all environment variables in /work/app-configs/goapi2/prod/env.sh to docker configuration

CONFIGURATION / SECRET

  • Dev: ConfigService loads configs and secrets from /data/app-configs/goapi2/dev/config.yml'
  • Prod: they are loaded from docker environment variables/

DEV

Access: http://localhost:8200

Run with typescript ts-node, using dev db

yarn dev

Compile and run with js

yarn dev-js

Run at local connect to prod

./scripts/run-image It can be used for testing image or just to quickly run backend at local

TSCONFIG

  1. The following are for typeorm "emitDecoratorMetadata": true, "experimentalDecorators": true,

About

A reference example for TypeScript and Node with a detailed README describing how to use the two together.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.7%
  • Shell 2.1%
  • JavaScript 1.1%
  • Dockerfile 1.1%