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
Language :
[Javascript/Paperscript/Html5/CSS3]
Based on :
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
0, Set the env as development:
# windows
set NODE_ENV=development
# linux/macOS
export NODE_ENV=development1, Start mongodb service with the command:
# Make a new folder as your database, e.g. d:\database in Windows
mongod --dbpath d:\database2, 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 install4, Start the server:
# test or debug it locally(automatically restart server once code changed)
npm test
# or use nodemon directly
nodemon app.js5, Go http://localhost:3000/ in Chrome to see the client.
0, Set the env as production:
# windows
set NODE_ENV=production
# linux/macOS
export NODE_ENV=production1, 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.js3, Go http://SERVERIP:3000/ in Chrome to see the client.


