Skip to content
/ Chess Public
forked from git-davi/Chess

A chess game web app built on Express.js framework

Notifications You must be signed in to change notification settings

rcovic/Chess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess

This is a chess web app game built on express js framework_

To run this web applcation with success you have to create a mysql database instance.

{
    host: 'localhost',
    user: 'chess',
    password: 'chess',
    database : 'chess_db' 
}

Setup

First on all install every module :

$ cd Chess
$ npm install

Creat the db, the user and grant privileges:

CREATE DATABASE chess_db;
CREATE USER 'chess'@'localhost' IDENTIFIED BY 'chess';
GRANT ALL PRIVILEGES ON chess_db.* TO 'chess'@'localhost';

To dump the db to a file :

$ mysqldump -u chess -p chess_db > database/dump.sql

To import the db :

$ mysql -u chess -p chess_db < database/dump.sql

Models migrations

If you want to modify a model then you should apply changes to db :

$ node models/migrations.js

Start

To run the server in debug mode:

$ DEBUG=chess:* npm start

To run in production mode :

$ NODE_ENV=production npm start

About

A chess game web app built on Express.js framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.8%
  • TSQL 23.6%
  • HTML 13.8%
  • CSS 0.8%