Giter Site home page Giter Site logo

sayedazharsabri / node-mongoose-swagger-jest-winston Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 77 KB

A NodeJS project wich included nodeJS, mongoose, swagger, jest, winston and express validator - Beginner level (Created in a class for Beginners)

JavaScript 100.00%
mongodb express nodejs swagger mongoose winston winston-logger winston-transport

node-mongoose-swagger-jest-winston's Introduction

A NodeJS project wich included nodeJS, mongoose, swagger, jest, winston and express validator

To run this project on Local

Step 1: Run below command to install all the packages

    yarn install

To run using nodemon

Step 1: Create a mongoDB database and add mongoDB connection string to nodemon.json -> MONGODB_CONNECTION_STRING

Step 2: Run below command to start the server on localhost

    yarn start:dev

To run without nodemon

Step 1: set NODE_ENV, PORT, MONGODB_CONNECTION_STRING in node environment while executing command to run server.

To run Test cases

Step 1: Run below command

    yarn test

To access swagger documentation

Step 1: Run the server on local host and then go to browser and access below URL

    http://localhost:3000/api-docs

Note: 3000 is port, so change it if you change the port

To access logs

Step 1: Goto log folder. There datewise files for mixed/combined logs and errors.

node-mongoose-swagger-jest-winston's People

Contributors

sayedazharsabri avatar

Stargazers

 avatar

Watchers

 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.