Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# incremental rebuild (webpack)
$ npm run webpack
$ npm run start:hmr
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- run:
psql postgres
- Create role:
CREATE ROLE ideauser WITH LOGIN PASSWORD 'ideapass';
- Create DB:
create database ideadb;
- Grant:
GRANT ALL PRIVILEGES ON DATABASE ideaDB TO ideauser;
- Postgres need
uuid_generate_v4()
function. So, if you getQueryFailedError: function uuid_generate_v4() does not exist
error, runCREATE EXTENSION IF NOT EXISTS "uuid-ossp";
on pqsl.