Coder Social home page Coder Social logo

daskott / sean Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 482 KB

SEAN (SQL(mysql), Express, Angular, Node) - A Simple, Scalable and Easy starter project for full stack javascript web development.

JavaScript 86.61% CSS 3.07% HTML 10.33%
angularjs node-js sequelize expressjs sean starter-template

sean's Introduction

SEAN

SEAN is a simple project for an easy starting point with Mysql (using the [Sequelize] (http://docs.sequelizejs.com/en/latest/) ORM), Node.js, Express, and AngularJS based applications. It is designed to give you a quick and organized way to start developing SEAN based web apps.

Prerequisite Technologies

Linux

  • Node.js - Download and Install Node.js, nodeschool has free node tutorials to get you started. Recommend node version is node-4.x to run sean.
  • Mysql - Download

If you're using ubuntu, this is the preferred repository to use...

$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
$ sudo apt-get update
$ sudo apt-get install nodejs
  • Git - Get git using a package manager or download it.

Windows

  • Node.js - Download and Install Node.js, nodeschool has free node tutorials to get you started.
  • Mysql - Follow the great tutorial from the mongodb site - "Install Mysql On Windows"
  • Git - The easiest way to install git and then run the rest of the commands through the git bash application (via command prompt) is by downloading and installing Git for Windows

OSX

Prerequisite packages

  • Install Yarn.
  • Sean currently uses gulp as a build tool and bower to manage frontend packages.
$ npm install -g gulp
// and bower
$ npm install -g bower
  • Create a DB with the name "SEAN"
$ mysql> create database SEAN;
  • In the ./SEAN dir from terminal run:(choose to install jquery#1.9.1 - 2)
$ yarn install && bower install
  • In the ./SEAN dir, create a ".env" file with the following values:
  API_SECRET = "Anything you want"
  • In the ./SEAN dir, create this file "/config/config.json" with the following values (fill in your mysql password):
{
  "development": {
    "username": "root",
    "password": "",
    "database": "SEAN",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "logging": false
  },
  "test": {
    "username": "root",
    "password": "",
    "database": "SEAN",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "logging": false
  },
  "production": {
    "username": "root",
    "password": "",
    "database": "SEAN",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "logging": false
  }
}

Start web server

  • To start your web server, from terminal run:
$ gulp
  • Initialize db, from terminal run (ONLY HAVE TO DO THIS ON THE 1ST RUN):
$ gulp db:init
  • Access the web app on your localhost:
http://localhost:8080/
  • To make a user admin: Form ./SEAN dir in terminal
$ gulp user --admin <username>

Tests

  • To run all tests (from terminal run):
$ gulp test
  • To run end-to-end tests (from terminal run):
$ gulp protractor
  • To run server/api tests (from terminal run):
$ gulp mocha
  • To run angular tests (from terminal run):
$ gulp karma

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.