Giter Site home page Giter Site logo

dipo0x / nodejs-express-starter Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 337 KB

Built with Node JS, Redis, MongoDB, AdminBro. This is a very basic Boilerplate for anyone who wants to develop a Node JS Web API.

JavaScript 99.14% Handlebars 0.86%
adminbro bunyan-logger expressjs nodejs redis

nodejs-express-starter's Introduction

NodeJS Boilerplate

This is a simple NodeJS Boilerplate that contains Logger, Error Handler, Attempts Limits and everything you will need to get your NodeJS application up and running with basic security y'll need.

Installation

  1. NodeJS
  2. Express JS

Getting Started

Clone the repo and install all your dependeincies with npm install

You will also need to get your MongoDB server running. Use online cluster here or download MongoDB Compass. Finally, basic knowledge of Redis is required

When all has been installed, you can start the express server by running:

npm start

Usage

Make a Reference to the Postman Collection to see the Environment Variables and Requests

Test

Run this to test the CRUD Operations of the API

npm run integration-tests

Stack Choice

MongoDB - It lets the application run while it is fetching data from the backend server which won't make our large users always wait for response. It is asynchronous and event-driven. Schema doesn't have to be well structured, which makes it perfect for frequently changing data. MongoDB is also a distributed database which allows ad-hoc queries, real-time integration, and indexing efficient.

Redis - <You can connect to mongoAtlas to see the effect of Redis clearly - reduction in data retrieval time> Since Redis is an in-memory database, its data access operations are faster than any other disk-bound database could deliver. It makes Redis the perfect choice for caching. Its key-value data storage is another plus because it makes data storage and retrieval much simpler. Our large users don't always have to fetch data from our database everytime, they can always have in-memory storage to retrieve data from therefore reducing stress on DB.

nodejs-express-starter's People

Contributors

dependabot[bot] avatar dipo0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.