GithubHelp home page GithubHelp logo

femresirvan / node.js-starter-template Goto Github PK

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

Comprehensive Node.js starter kit powered by MVC design and bunch of notes! (Under development!)

License: MIT License

JavaScript 100.00%
nodejs under-development starter starter-kit starter-template boilerplate boilerplate-template javascript express

node.js-starter-template's Introduction

node.js-starter-template

Turkçe (Hazırlanıyor...) - English

Be aware of that is incomplete documentation!

Table of Contents

🎀 Introduction

Comprehensive Node.js starter kit powered by MVC design and bunch of notes!

Features

  • ...
  • ..
  • ..

🛣️ Roadmap

  • Install dependencies, configure eslint.js etc.
  • Complete express.js configurations.
  • Install swagger-ui-express.
  • Complete mongoose.js configurations.
  • Make email auth and user schemas with passport-jwt passport-local.
  • Make google auth with passport-google-oauth2
  • Extend with swagger.
  • Implement test environment.
  • And many more..

🏢 Project Structure

This will be replace.

Dependencies

  • Helmet (Security Middleware)
  • Swagger (API Documentation)
  • Express.js (a back end web application framework for Node.js)
  • Mongoose (creates a connection between MongoDB and Node.js)
  • dotenv (to integrate .env files)
  • HTTP
  • Chalk (String coloring for console)
  • ESLint with Airbnb style
  • Prettier
  • Morgan (Logger for requests)
  • Passport.js (for Authentication&Authorization)
  • Passport local
  • Passport Google Oauth

Prerequisite

👨‍💻 Installation

Clone repository

$ git clone https://github.com/femresirvan/node.js-starter-template.git
$ cd node.js-starter-template

Install dependencies

$ npm i

Configure .env

~./env
PORT=PORT_NUMBER
NODE_ENV='dev' #Not prepared yet.
MONGODB_URI="NOT COMPLETED"
GOOGLE_ID="NOT COMPLETED"
GOOGLE_SECRET="NOT COMPLETED"

✔️ MongoDB&Mongoose Notes

MongoDB has very flexible structure so database models can be updated during the development phase.

MongoDB Database Creation Steps

  • Specify key points and entities.
  • Make ER Diagram to specify relationship between entities.
  • Choose a specific design pattern to create database.
  • Keep update the database schemas on issues while developing.

What to do to optimize MongoDB performance?

  • Create spesific indexes
  • Use complex aggregations

Most common design patterns used in Mongodb

  • Approximation
  • Attribute
  • Bucket
  • Computed
  • Document Versioning
  • Extended Reference
  • Outlier
  • Pre-allocation
  • Polymorphic
  • Schema Versioning
  • Subset
  • Tree

Documentations

Quick Start with Mongoose

MongoDB Design Patterns Documentation

MongoDB Documentation

Mongoose Documentation

Mongodb Aggregation Framework Book

Other Documentations

JS Book

🤝 Contributes&Donates

😊 Give me any advice by sending email!

Email: [email protected]

node.js-starter-template's People

Contributors

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