#Create account
POST http://localhost:3000/user
# form: {
# username: 'string'
# email: '[email protected]'
# password: 'password'
# };
# Login
POST http://localhost:3000/auth/login
# form: {
# username: '[email protected]'
# password: 'password'
# };
# Create shortlink
POST http://localhost:3000/u
# form: {
# originalUrl: "https://github.com/Amoralchik/server"
# };
# response: "http://localhost:3000/u?n=vIF4XPoLT7"
# Using shortlink
GET http://localhost:3000/u?n=vIF4XPoLT7
# Redirect to "https://github.com/Amoralchik/server"
$ yarn install
Rename .env.example to .env
change JWT_SECRET optional change SALT_ROUNDS
# docker with postgresql and server with watch mode
yarn run docker:up
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov