A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.
frank vtKMCCciF6pzLeleX4kMDw
export DATABASE_URL="postgresql://frank:cb7UN9MvuUV5PIFi1-yAjw@free-tier14.aws-us-east-1.cockroachlabs.cloud:26257/defaultdb?sslmode=verify-full&options=--cluster%3Dwarp-coyote-3426"
import { DataSource } from "typeorm"; import { URL } from "url";
const dbUrl = new URL(process.env.DATABASE_URL); const routingId = dbUrl.searchParams.get("options"); dbUrl.searchParams.delete("options");
export const AppDataSource = new DataSource({ type: "cockroachdb", url: dbUrl.toString(), ssl: true, extra: { options: routingId }, });