Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jubaerhossain/boilerplate
https://github.com/jubaerhossain/boilerplate
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jubaerhossain/boilerplate
- Owner: JubaerHossain
- License: mit
- Created: 2021-07-13T08:13:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:19:16.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T09:08:18.798Z (almost 2 years ago)
- Language: TypeScript
- Size: 1.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Boilerplate
( Express TS Sequelize )
## Install```sh
npm install## Enabled Husky
```sh
npx husky installor
yarn husky install
```## Generate Jwt Secret
```sh
npm run refresh:env-jwt
```## Usage Development
```sh
npm run dev
```## Using Sequelize
Using sequelize with development mode, you can set the database configuration in `.env`, like this :
```sh
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=example_database
DB_USERNAME=example_user
DB_PASSWORD=example_password
DB_OPERATOR_ALIAS=
DB_TIMEZONE=+07:00
```if you set production mode change the database config `PROD_DB_DATABASE`
then after that you can adjust the database config in `DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`.
now you can run this command :```sh
npm run db:reset