Skip to content

A Refactored Version of Crowd Jigsaw Puzzle, with Node.js, Express and MongoDB.

Notifications You must be signed in to change notification settings

colligence/CrowdJigsaw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crowd Jigsaw


Crowd Jigsaw is an online game, where multiple players work together to figure out a complex jigsaw puzzle. Designed to be an Application of Crowd Wisdom/Collective Intelligence As a Refactored Version of Crowd Jigsaw Puzzle

Powered By

@Symbolk

@Yuhan Wei

@Xinyue Zhang

Overview

Language :

[Javascript/Paperscript/Html5/CSS3]

Based on :

Express Mongodb paper.js MDL FontAwesome

Requirements :

OS: Windows/Linux/iOS/Android

Chrome ~59.0/Safari

Node.js ~6.11.0

Express ~4.15.0

Mongodb ~3.4.7

P.S. See npm dependencies in package.json


Usage

Home Phone PhoneDrawer

Level1 : Jagged Pictorial Tiles

Level1

Level2 : Square Pictorial Tiles

Level2

Level3 : Voronoi Pictorial Tiles

Level3

Level4 : Voronoi Non-Pictorial Tiles

Level4

Development(Windows)

0, Set the env as development:

# windows
set NODE_ENV=development
# linux/macOS
export NODE_ENV=development

1, Start mongodb service with the command:

# Make a new folder as your database, e.g. d:\database in Windows
mongod --dbpath d:\database

2, Create the database required in another CMD:

# get into the interactive shell of mongodb
mongo
# create the userinfo database
> use userinfo;
# check the current database
> show dbs;
> db;

3, Under the project folder, install the package dependencies:

cd CrowdJigsaw
npm install

4, Start the server:

# test or debug it locally(automatically restart server once code changed)
npm test
# or use nodemon directly
nodemon app.js

5, Go http://localhost:3000/ in Chrome to see the client.

Delpoyment(Aliyun CentOS)

0, Set the env as production:

# windows
set NODE_ENV=production
# linux/macOS
export NODE_ENV=production

1, Start mongodb service with the command:

# Make a new folder as your database, e.g. /var/www/database
nohup mongod --dbpath /var/www/database &

2, Edit config.pro.js in the end:

    ...
    database: 'mongodb://localhost:27017/CrowdJigsaw',    
    url: 'http://SERVERIP:3000/'
  };
3, Start the server:

```sh
# install forever first
npm install forever -g
# start it
npm start
# or use forever
forever start app.js

3, Go http://SERVERIP:3000/ in Chrome to see the client.

Bugs&Issues

About

A Refactored Version of Crowd Jigsaw Puzzle, with Node.js, Express and MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.5%
  • HTML 6.9%
  • CSS 0.6%