GithubHelp home page GithubHelp logo

mkelley82 / angular2-express-node-mysql-seed-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 15.0 47 KB

A seed project using Angular2, Express, Node, and MySQL.

JavaScript 30.89% TypeScript 50.52% HTML 18.34% CSS 0.26%

angular2-express-node-mysql-seed-project's Introduction

Webpackcli

This project was generated with angular-cli version 1.0.0-beta.11-webpack.2.

Description

This seed project sets up Angular 2 with Express.js, Node.js and MySQL. It performs basic connection with the database and builds simple API using the technology stack. The frontend contains setup of routing with Angular 2 r.c.5.

Best of Luck!

Installation

To use this seed project, download or clone this repository and go to the project folder and follow the steps below:

npm install

cd backend

npm install

Create a new tab in your terminal/command line and in there log in to your local MySQL database and follow the steps below:

CREATE DATABASE webpackcli;

USE webpackcli;

CREATE TABLE users (
	id INT(11) NOT NULL AUTO_INCREMENT,
	username VARCHAR(30) NOT NULL PRIMARY KEY,
	hashedpassword VARCHAR(255) NOT NULL,
	CONSTRAINT user_id UNIQUE(id) 
);

Once completed, run in the backend folder:

node server

Then create a new terminal or command line tab and go to the project folder and run ng serve for a dev server.

In your browswer, navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

angular2-express-node-mysql-seed-project's People

Watchers

 avatar  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.