Giter Club home page Giter Club logo

mean-boilerplate's Introduction

Version Build Status Test Coverage Code Climate

MEAN boilerplate

This is a MEAN stack app boilerplate (MongoDB, Express, AngularJS and Node.js) based on Express app skeleton.

This micro web application consist on a SPA (single page application) for managing fruits.

Each fruit will have name, description and price attributes.

Users will have username and password.

DEMO: http://mean-boilerplate.azurewebsites.net

  • demo username: han_solo
  • demo password: chewbacca

Backend

Backend will be implement with MongoDB database, running on mongolab.com.

Mongoose will be used as ODM in this project. Only two schemas will be defined, one defining a fruit and the other one definig a basic user profile.

Frontend

Jade template engine will be used for rendering views. Only one generic layout, one mixins file a an index page will be included.

AngularJS will be used as frontend framework. Each view will have its controller.

Communication with model will be implemented with AJAX instead of a data factory or provider to show of API reusability for mobiles apps, etc.

Dependencies

  • body-parser ~1.13.2
  • cookie-parser ~1.3.5
  • debug ~2.2.0
  • express ~4.13.1
  • jade ~1.11.0
  • morgan ~1.6.1
  • serve-favicon ~2.3.0
  • mongoose ~4.3.0
  • i18next 1.10.3

Notes

DB connection string is hardcoded. I know it should be set as an ENV var, but it´s hardcoded due to simplicity matters for the demo.

Test

Run npm test to execute tests. Included tests:

  • User unit tests
  • User integration tests
  • Fruit unit tests
  • Fruit integration tests

TO DO

  • Store user password hash instead of the actual password in plain text
  • Responsive design
  • Retina graphics (@2x)
  • Upgrade i18next (deprecated)

mean-boilerplate's People

Contributors

alejandromav avatar

Watchers

James Cloos avatar Avishek Das 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.