https://documenter.getpostman.com/view/5473913/VUjQkPgX
Below is the database schema of this service:
Set up your .env
file align with .env.sample
given
NODE_ENV=development
PORT=3000
DATABASE_URL=postgres://username:password@localhost:5432/db_name
INITIAL_ADMIN_PASSWORD=admin123
BCRYPT_SALT=8
JWT_SECRET_KEY=somesecret
PGSSLMODE=no-verify
$ yarn
# or
$ npm install
$ yarn db:create
$ yarn db:migrate
$ yarn db:seed:exec
$ yarn start
# or
$ yarn dev
Or you can run in vscode debug mode by pressing F5
.
NodeJS: v16.13.1
Installation
- Click on the extensions icon in VS Code
- Search for
prettier
- You will see the extension from Prettier
- Click on the install button Hit the Reload button or restart the VS Code, once the extension is installed
Usage
- To automatically format the file on save, In Visual Studio Code, press
Control + Shift + P
orCommand + Shift + P (Mac)
to open the command palette and type setting and then select Preferences: Open User Settings option. - Search for format on save setting and check the checkbox.
- Gregorius Ferry
- Muhammad Nursalli
- Irvan Ariyanto