Skip to content

eni4sure/nodejs-boilertemplate

Repository files navigation

nodejs-boilertemplate

Description of the project goes here.


Setup & usage

1. Install all dependencies

yarn install

2. Start the development server

yarn dev

3. Open http://localhost:4000 with your browser to see if the server is up.


Naming Conventions

Classes and Types

When naming classes and types, use PascalCase.

class MyClass {
  // ...
}

type MyType = {
  // ...
};

Functions and Variables

When naming functions and variables, use camelCase.

const myFunction = () => {
  // ...
};

const myVariable = 0;

Database Columns or Data In/Out

for database columns & response payloads, use snake_case.

{ 
    "first_name": "John",
    "last_name": "Doe"
}

API Testing Client

Download and install the latest version of Bruno from here.

After installing:

  • open Bruno
  • click on the + button to open a new collection
  • navigate and select the folder api-client-doc in the root directory of the project

You should now see the collection in the Bruno app.

PS: as you make changes (add or delete) the endpoints, the change is persisted to the api-client-doc folder


Contribution Guide

Git Contribution

Perform all your changes on a fork of the base repository.

Open a pull request once you have completed your changes.

Don't forget to sync your fork and pull frequently in case any new changes that have been made to the base repository may conflict with your changes.


File Formatting

The same prettier config will be used for code formatting. It should be automatically applied when you use the VS Code prettier extension. If you are using something other than VS Code, try to see if a prettier extension is available for that.


official policy: it is fOrBiddEn to bring down production with your PRs !!

About

A simple boiler template for node, express, mongo apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published