You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone https://github.com/Synrgy-Academy-Final-Project/Backend-FSW.git # get source code of the repository
$ cp .env.example .env # copy file .env.example to .env
$ npm install # install package
Scripts
$ npm run build # build typescript project
$ npm run dev # run in development mode
$ npm run setup # run migration, seeder
$ npm run knex migrate:up filename.ts # run migration specific filename
$ npm run knex migrate:down filename.ts # drop migration specific filename
$ npm run knex migrate:make migration_name # create new file migration
$ npm run knex seed:make seed_name # create new file seeds
$ npx knex seed:run --specific=filename.ts --knexfile src/config/knexfile.ts # run seed specific filename
$ npm run keys # create private and public key jwt, no passphrase
$ npm run test # run unit test
$ npm run coverage # run unit test with coverage
$ npx vitest tests/folder/filename.test.ts # run test with specific file