Giter VIP home page Giter VIP logo

xcoin's Introduction

xcoin project

List of changes and improvements.

Changes:

  • Remove unused packages
  • Add gitignore
  • Separate the app and server due to best practices for integration tests
  • Add eslint files
  • Linting project
  • Remove duplicate middleware usage on simulator.router
  • Define DB connection
  • Refactor config file based on dotenv module
  • Refactor mongoose models
  • Refactor seed script
  • Define types for each model in ./types
  • Set project hierarchy like bulletproof Node.js architecture
  • Move /api from every route to entry point. Also it's best practice to change /api to /v1. The api endpoint versioning and prevent redundant url segment.
  • Reformat API routers base on API best practices like: /profile to /profiles or /favorites/:profileId to /favorites/profile/:profileId
  • Install joi to validate user inputs
  • Set a error catcher middleware
  • Set a response model on express response
  • Set a logging strategy

What Next:

  • We need authentication for app
  • We need to sanitize the inputs for XSS and SQL injection attacks
  • Shipping logs to log manager
  • Setting and gathering application statuses

xcoin's People

Contributors

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