This is the backend for "Football Draft Simulator" project. It exposes a http server and a websockets server in NodeJS environment. Also servers the Algolia Search engine for supporting football players search from data scraped using Football Players Data Crawler
It is a turn-based multiplayer game. Where people enter and create a room. Other people hop into the room.
Then the game begins where all players are shuffled and first-person gets the chance to pick the football-player he wants. He can search from the list of players (viewing their stats, position, ratings, and other details) and confirm his selection within the allocation time. Now, the turn is passed to another player.
This repeats until every person has picked their whole football squad. There are various modes you can choose from
Different modes include:
- Classic Mode - Classic football turn based draft
- Money in the Bank Mode - Football Draft with player bettings and selling
Install and start the server
npm install
npm run start
Build and use pm2 to start your process
npm run build
pm2 start ./build/app.js --name fifa-api