Giter Club home page Giter Club logo

bare-express's Introduction

Bare Express Web Server

A basic scaffold/skeleton to create a Node.JS Express server.

Contributing

If you wish to contribute to this repository, please feel free to clone/fork. Issue Pull Requests or open issues for any changes that you make.

Functionality

  • HTTP(S) Request Logging
  • Rotating log system
  • Enforcement of HTTPS usage in production environments
  • Compression of responses
  • Configurable application variables
  • REST-ful API setup
  • MongoDB support

Future Functionality

All future functionality will branch off of master; the master branch will always be a simple "scaffold" express server. The other branches will contain additional functionality.

  • SQL DB support: Connect and interact with SQL DB's through Sequelize
  • Passport: Implement authentication and authorization strategies with Passport

Setup

  • Simply clone the repo git clone https://github.com/Parasin/bare-express.git

  • Install the dependencies

    • Install Node.JS
    • Install application dependencies npm install
  • Add the routes you need under the routes directory, and include require them in your routes/index.js file.

| routes/
| index.js
|
|---> user/
     |---> index.js
|
|---> auth/
     |---> index.js
//FILE: routes/index.js
const user = require( './user' );

// WON'T ENFORCE HTTPS
  if ( config.env === 'development' ) {
     app.use( '/user', user );
  }

  // WILL ENFORCE HTTPS
  else {
     app.use( '/user', user );
  }

Starting

  • Run the command npm test to run the application in "development" mode.
  • Run the command npm start to run the application in "production" mode.

bare-express'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  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

bare-express's Issues

Mongoose Service with Populate

Hi,

How we can use That Mongoose Service in case sometime we have Nested Query With Populate ,
Would it be Another find() method with populate Loginc and on for Simple find() to get Data List ?

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.