Skip to content

M*EAN (*MySQL, Express, Angular, Node) - A Simple, Scalable and Easy starting point for javascript web development with a relational database ORM

License

Notifications You must be signed in to change notification settings

jcsena/mean-relational

Repository files navigation

Dependency Status

M*EAN Relational

The main idea for this repository is shamelessly stolen from http://mean.io and mean-stack-relational M*EAN . It says:

MEAN is a boilerplate that provides a nice starting point for [MySQL], Express, Node.js, and AngularJS based applications. It is designed to give you quick and organized way to start developing of MEAN based web apps with useful modules like sequelize and passport pre-bundled and configured. We mainly try to take care of the connection points between existing popular frameworks and solve common integration problems.

The MongoDB ORM, Mongoose, has been replaced with Sequelize. Switching from mongoose to sequelize allows developers easy access to MySQL, MariaDB, SQLite or PostgreSQL databases by mapping database entries to objects and vice versa.

Addy Osmani's Blog explains SQL databases, being strongly typed in nature are great at enforcing a level of consistency, ensuring many kinds of bad data simply don’t get recorded. By using SQL databases MEAN Stack Relational favors reliability over the performance gains of NoSQL databases.

The M*EAN-relational

M*EAN is an acronym for Mysql, Express.js , Angular.js and Node.js

Technologies

Mysql
Is a relational database management system (RDBMS) in July 2013, it was the world's second most widely used RDBMS, and the most widely used open-source RDBMS.
Express
The best way to understand express is through its Official Website, particularly The Express Guide; you can also go through this StackOverflow thread for more resources.
AngularJS
Angular's Official Website is a great starting point. CodeSchool and google created a great tutorial for beginners, and the angular videos by Egghead. Utilice Angular Style Guide and best practice make by Jhon Papa
Node.js
Start by going through Node.js Official Website and this StackOverflow thread, which should get you going with the Node.js platform in no time.

Additional Tools

  • Sequelize - Is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
  • Passport - An authentication middleware for Node.js which supports authentication using a username and password, Facebook, Twitter, and more.
  • Twitter Bootstrap - The most popular HTML, CSS, and JS framework for developing responsive, mobile first projects.
  • UI Bootstrap - Bootstrap components written in pure AngularJS

Prerequisites

Tool Prerequisites

$ npm install -g bower
$ npm install -g grunt

Installation

Alright now the fun begins. First clone or download the repo to your computer.

$ git clone https://github.com/jcsena/mean-relational.git
$ cd mean-relational && npm install
  • Config auth datebase /config/env/development.js.
$ grunt

Thats all! Now go and open up your browser at http://localhost:3000, and tweet @dendores to say thanks!

NPM Modules Used

  • Passport - Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.
  • Express - Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
  • Sequelize - The Sequelize library provides easy access to MySQL, MariaDB, SQLite or PostgreSQL databases by mapping database entries to objects and vice versa. To put it in a nutshell, it's an ORM (Object-Relational-Mapper). The library is written entirely in JavaScript and can be used in the Node.JS environment.

Troubleshooting and Contact

During install some of you may encounter some issues feel free to contact me (julio-sena) via the repository issue tracker or the links provided below. I am also available on twitter at @dendores.

About

M*EAN (*MySQL, Express, Angular, Node) - A Simple, Scalable and Easy starting point for javascript web development with a relational database ORM

Resources

License

Stars

Watchers

Forks

Packages

No packages published