Giter VIP home page Giter VIP logo

node-backend-seed's Introduction

Node Backend Seed

This is a base project for back-end/microservice projects.

Scripts

Initial setup

In order to setup the application you need to run:

npm install

If you want to run the TypeScript build process, run:

npm run build

Note: The build command is run every time you start your application, so no need to run it manually.

Stating the application

If you just start your app, run:

npm run start

If you want to run a debug/watch mode, where your app reloads when changes to the code are made, run:

npm run start:watch

Linting

In order to run the linting on the whole project, run:

npm run lint

This will run all the tslint rules found in the stricter-tslint-config.

Testing

Testing is done via the Jest framework. In order to run all the test with code coverage, run:

npm run test

If you want to continuously run the tests and watch for changes, run:

npm run test:watch

Other

Logs

The current application will log everything on the console and in the folder /logs. The logs are rolling and are based on a date/hour combination. Each hour a new log file is created and the old one is compressed and stored in the same folder.

API Documentation

Swagger is used for the documentation of the Rest APIs. You need to write yaml files using the OpenAPI 3.0 standard in order to produce the end product. For now yaml files are only collected from the /models and /controllers folder.

In order to access the Swagger UI, navigate to {host}:{port}/api-docs.

node-backend-seed's People

Contributors

teodor92 avatar

Watchers

James Cloos avatar Evdokia Yordanova avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.