Giter Site home page Giter Site logo

muhammad707 / express-mongodb-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from omerg/express-mongodb-base

0.0 1.0 0.0 1.81 MB

This is an example project for those who want to bootsrap an API using Express and MongoDB.

Home Page: https://express-mongodb-base.herokuapp.com/api

Dockerfile 0.44% JavaScript 5.60% TypeScript 93.96%

express-mongodb-base's Introduction

Express MongoDB Base

Build Status contributions welcome

This is an example project for those who want to bootsrap an API using Express and MongoDB.

Demo

https://express-mongodb-base.herokuapp.com/api

Heroku Automatic Deployment

Deploy

If you forked this repository, you can link it to your heroku app afterwards.

Pre-reqs

To build and run this app locally you will need a few things:

Getting started

  • Install dependencies
cd <project_name>
npm install

Running the project

You can simply call Npm Script:

$ npm start

Or you can bootstrap the project right away using Docker:

$ docker-compose up

Start Using the API at http://localhost:3001/api/

Debugging the project

In order to enable debugging in local environment, start project with the following command:

$ npm run debug

Note on editors! - TypeScript has great support in every editor . You can place breakpoints in TypeScript code and debug at runtime.

For configuration of your favorite IDE, see the documentation for:

Feature Highlights

  • File Structure

    • The project file structure is defined as below:
      • src/dao for Data Access Objects
      • src/model for Database Object Model Representations
      • src/routes/api for API Routes
      • src/services for Services
  • Express-JWT

    • Token Based Authorization
  • Inversify

    • Annotation Based Configuration
    • Inversion of Control
  • Mongoose

    • Object Relational Mapping (ORM) Layer
    • Model Validation
    • Data Access Object (DAO) Layer
    • Create Read Update Delete (CRUD) Operations Abstracted via Super Class
  • Nodemon

    • Hot Reloading
  • Docker

    • Containerization
    • Docker Compose used to attach MongoDB Image to application
  • Travis CI

    • Continuous Integration
    • Has an extra .gitlab-ci.yml file for Gitlab users!

express-mongodb-base's People

Contributors

omerg avatar dependabot[bot] avatar

Watchers

James Cloos 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.