https://github.com/firmanjs/express-postgres-sequelize-typescript
https://github.com/firmanjs/express-postgres-sequelize-typescript
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/firmanjs/express-postgres-sequelize-typescript
- Owner: firmanJS
- License: mit
- Created: 2021-11-27T06:15:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-27T06:39:27.000Z (over 4 years ago)
- Last Synced: 2025-02-02T09:41:36.328Z (about 1 year ago)
- Language: TypeScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# expressjs-typescript-orm-sequelize
simple expressjs typescript with orm sequelize
## How To run
### copy environment variable
```sh
cp .env-sample .env
```
### run manualy
* via yarn or npm :
```sh
# install package
npm install or yarn install
# running app with build
npm run dev or yarn dev
# running app watch mode for local
npm run watch or yarn watch
```
* via make :
```sh
# start aplication with docker
make docker-start
# stop docker container
make docker-stop
# remove docker container
make docker-down
```
### fill in the copied environment earlier
```sh
#NODEJS
APP_PORT=8000
NODE_ENV=development
#DB
DB_USERNAME=
DB_PASSWORD=
DB_PORT=
DB_DATABASE=
DB_DRIVER='postgres'
DB_HOST=
DB_NAME=
```
### run with docker-compose
```sh
docker-compose up --build
```
### or run with background process
```sh
docker-compose up --build -d
```
### execution npm with container docker
```sh
# install package
docker-compose exec express-typescript-dot npm install
```