Code Monkey home page Code Monkey logo

zafar-saleem / nodescalablearchitecture Goto Github PK

View Code? Open in Web Editor NEW
64.0 3.0 37.0 38 KB

A Scalable Node Architecture/Server. This repository contains a complete implementation of writing scalable nodejs server/architecture on my medium blog.

Home Page: https://medium.freecodecamp.org/writing-scalable-architecture-for-node-js-2b58e0523d7f

JavaScript 100.00%
nodejs node express jwt jwt-authentication jwt-token jwt-auth jwt-tokens mongodb mongoose

nodescalablearchitecture's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nodescalablearchitecture's Issues

document features

What does scalable mean for you?
For what measures? Team size? Deployment target? Testing? New features?

Right now the example is single-use-case oriented.
Are you implementing the node best practices?
Are you implementing the 12 factor app best practices?
I can keep on stuffing files in services, models and routes but it will lack essential features that I miss from a professional scalable architecture.

Is it a monolithical approach? Is it a micro-serivce oriented approach? Do you let people decide?

Just to name a few, to call this anything close to scalable, I am missing:

  • code style configuration
  • logging
  • configuration defined by environment variables
  • tests
  • dependency injection
  • freedom of data adapters (database, pubsub, authentication)
  • JSDOC, exported documentation (to put online) and generation of it (HTTP API, Schema, JS API)
  • boilerplate creation of new modules
  • services that can be reused without the express objects leaking through the entire code base
  • types

The problem with scalable is, that it does not only concern nodejs. You need to take care of the tooling around and the tooling needed to continuously package, deploy and extend the codebase and all its dependencies flawlessly.
Scalable means I am enabled to add features with confidence, not breaking something else as I add new things.

I am missing all these things from this project.

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.