Skip to content

martinmarinov150402/RestAPI

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

<<<<<<< HEAD
IMPORTANT!!!
After instalation you should make folder called "config" and put in it file called "production.yml".
This file should contain
=======

IMPORTANT!!!
After instalation you should make folder called "config" and put in it file called "production.yml".
This file should contain information for your database and your JWT Secret.
Copy this example in the file and fill it with your data.
db:
  host: 'localhost'
  username: 'postgres'
  password: 'postgres'
  synchronize: true

jwt:
  secret: 'SecretASD'

Also in this folder you should make file called default.yml. Copy this example and change it for yourself:

server:
  port: 3000

db:
  type: 'postgres'
  port: 5432
  database: 'taskmanagement'

jwt: 
  expiresIn: 3600
  
After that run it in production mode. After first run I recommnd you to change synchronize to false.
>>>>>>> 6e8ef51341e7149da9e3563e0a29342b859c3814

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

Nest is MIT licensed.

About

Simple RestAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors