Crowd Jigsaw is an online game, where multiple players work together to figure out a complex jigsaw puzzle.
As a Refactored Version of CrowdJigsawPuzzle based on Firebase.
Designed to be an Application of Crowd Wisdom/Collective Intelligence Powered By: @Symbolk @Yuhan Wei @Xinyue Zhang
Language :
[Javascript/Paperscript/Html5/CSS3]
Framework :
Requirements :
Platform | Support | Version |
---|---|---|
OS | Windows/Linux/iOS/Android | N/A |
Browser | Chrome/Safari | ~60.0 |
Node.js | Node.js | ~8.9.4 |
Express | Express | ~4.15.0 |
Mongodb | Mongodb | ~3.4.7 |
P.S. See npm dependencies in package.json
In one round, a crowd of players are playing together to figure out the same jigsaw puzzle(which can be overwhelming for any individual). In this process, explicit communication is not necessary, people just focus on their work but assistance comes to him continually from the crowd.
0, Set the env as development:
# edit config/example.js and rename as dev.js
rm config/example.js config/dev.js
# 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.
0, Set the env as production:
# edit config/example.js and rename as pro.js
rm config/example.js config/pro.js
# 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, Start the server:
# 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.