fajarantono / be-helpcenter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BE HELPCENTER

Features

  • Database (typeorm).
  • Seeding.
  • I18N (nestjs-i18n).
  • File uploads. Support local and Amazon S3 drivers.
  • Swagger.
  • E2E and units tests.
  • Docker.
  • CI (Github Actions).
  • Logging

Getting Started

Before start, we need to install some packages and tools. The recommended version is the LTS version for every tool and package.

Clone Repo

Clone the project with git.

git clone https://github.com/fajarantono/be-helpcenter.git

Install Dependencies

This project needs some dependencies. Let's go install it.

npm install

npm run migration:run

npm run seed:run

Create environment

Make your own environment file with a copy of env.example and adjust values to suit your own environment.

cp .env.example .env

Links

Database utils

Generate migration

npm run migration:generate -- src/database/migrations/CreateNameTable

Run migration

npm run migration:run

Revert migration

npm run migration:revert

Drop all tables in database

npm run schema:drop

Run seed

npm run seed:run

Tests

# unit tests
npm run test

# e2e tests
npm run test:e2e

Run Project

Finally, Cheers 🍻🍻 !!! you passed all steps.

Now you can run the project.

npm run start:dev

About


Languages

Language:TypeScript 97.3%Language:JavaScript 2.7%