🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

hammer-starter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hammer-starter

A Node.js, Express, MySQL, Passport, Jade starter kit.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Build Status

Hammer

A Node.js, Express, MySQL, Passport, Jade starter kit.

Screenshot

Hammer Homepage Screenshot

Installation

git clone https://github.com/jkup/hammer.git
cd hammer
npm install

MySQL

First you'll need to create a database, name it anything you'd like but you'll need the name later.

$ mysql -uroot -p
mysql> CREATE DATABASE YOUR_DATABASE;

Inside this database create a 'users' table that contains the following fields:

mysql> CREATE TABLE `YOUR_DATABASE`.`users` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(45) NOT NULL,
`email` VARCHAR(255) NOT NULL,
`password` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `username_UNIQUE` (`username` ASC),
UNIQUE INDEX `email_UNIQUE` (`email` ASC));

You'll then need to edit app/config/connection.js and enter your credentials.

const connection = mysql.createConnection({
  host     : 'localhost',
  user     : 'YOUR_USERNAME',
  password : 'YOUR_PASSWORD',
  database : 'YOUR_DATABASE'
});

Server

Now you can edit app/config/routes/default-routes.js and replace the title and message key with whatever you'd like to see as the home page title and header message.

Start

Now just run:

npm start

And off you go!

Testing

A testing framework is already setup in the test folder. To run all tests, simply type:

npm test

Libraries

Hammer makes use of a lot of open source libraries. They are probably your best bet for getting specific help with your application. The current list of technologies can be found here.

Keywords

Express

FAQs

Package last updated on 28 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts