Giter VIP home page Giter VIP logo

express-boilerplate's Introduction

๐Ÿ’ก Model-View-Controller starter code for Express including Authentication

Full version of the Model View Controller pattern using Express as Webserver and MongoDB as database driver.

Attachment

Folder structure

  1. Routes - Includes all the routes to specific pages with POST, GET, PUT and DELETE requests.
  2. Models - All the models and schemas for the database.
  3. Views - The views HTML files.
  4. Controllers - When Route endpoint is reached a controller action handles the request.

How to use it

  1. Download the repo as .zip or clone it with git clone https://github.com/ImMoe/express-starter.git.
  2. Then within the folder you downloaded run npm install
  3. Now open .env file and change DB_NAME value from YOUR_DB_NAME to your preference.
  4. Now everything is configured and you are ready to start building your site.

Deployment

  • Before deployment if you use Mongo Atlas put connection string into MONGO_ATLAS variable inside .env file.
  • After that go inside database folder and open config.js and change ${process.env.DB_HOST}${process.env.DB_NAME} to ${process.env.MONGO_ATLAS}

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.