10000 GitHub - nuclear-waste-storage/node-server-template: This is Node.js server tidy template / boilerplate with Express (with asyncified handlers, custom error handler) framework and MongoDb. The server use ES6 and above. On different branches you can see different techniques' and technologies' usage, such as Kafka, nodemailer, file download... You also can find postman collections.
[go: up one dir, main page]

Skip to content

This is Node.js server tidy template / boilerplate with Express (with asyncified handlers, custom error handler) framework and MongoDb. The server use ES6 and above. On different branches you can see different techniques' and technologies' usage, such as Kafka, nodemailer, file download... You also can find postman collections.

License

Notifications You must be signed in to change notification settings

nuclear-waste-storage/node-server-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js server template

Table of contents

General info

12.03.21 Updates. Great news ! 🔥 ❤️
In this template every time we manually create 7 files for one CRUD logic. Now you can create your CRUD new files at once just using rest-resource-file-generator npm module made by me 🎩
Here is the link of instructions in npm rest-resource-file-generator
This is a simple Node.js server application boilerplate with CRUD operations simple logic. It provides REST APIs. Before using it, please ensure that you've already installed the following programs
Git as version control,
Node.js as server program,
Yarn as Node.js package manager,
MongoDb as database program.
If you haven't, these are their links for installing.

Technologies

Program/lib | version | command for checking
Git | 2.30.1 | git --version
Node.js | v16.6.1 | node -v
Express | ^4.17.1 | see in app package.json
MongoDB | v4.4.5 | mongo --version
Mongoose | ^6.0.11 | see in this app package.json
Mocha | 9.1.3 | see in this app package.json
Eslint | 8.0.1 | see in this app package.json
Yarn | 1.22.10 | yarn -v

Setup

  1. Clone this repository
    git clone https://github.com/Vladinho10/node-server-template.git
  2. Fill in your git credentials (if required)
  3. Enter the downloaded directory.
    cd node-server-template
  4. Create your .env files like .env file in envs directory.

for npm

  • install packages
    npm i
  • run server
    npm run start or
    npm start
  • if you want your server stay always running
    npm run nodemon

for yarn

  • install packages
    yarn
  • run server
    yarn run start or
    yarn start
  • if you want your server stay always running
    yarn run nodemon or
    yarn nodemon

Style guide

We suggest our ESLint configs which are inspired by AirBnB configs. We are open to any suggestions from contributors if they are inline with our philosophy.
These ESLint configs are written and tuned for modern JavaScript development. So we don’t support old, outdated JavaScript methods, e.g. obj = new Object() this construct because we can just use const obj = {};
more

Architecture guide

The software architecture (SA) is one of the most important parts of the software development. It helps developers to easily integrate into the existing codebase. The architecture describes a set of aspects and decisions of the software.
more app-architecture

About

This is Node.js server tidy template / boilerplate with Express (with asyncified handlers, custom error handler) framework and MongoDb. The server use ES6 and above. On different branches you can see different techniques' and technologies' usage, such as Kafka, nodemailer, file download... You also can find postman collections.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.2%
  • EJS 6.2%
  • CSS 1.2%
  • Other 1.4%
0