A full-stack JavaScript team hackathon project for Mintbean! Our application Type Fighter allows you to put your typing skills to the test against other players in a real-time, online experience. Race to complete a phrase before your opponent to deal damage and eventually defeat your opposition.
Check it out here!
Joseph Nguyen GitHub | LinkedIn
If you would like to develop this game yourself, here are steps you'll need to take to get started.
- Download Node.js.
- Clone the type-fighter repository.
- Open the terminal to the type-fighter repository.
- Run the command
npm installto download the necessary npm packages. - Run the command
cp .env.example .envto create a.envfile for the application. - In the
.envfile, change theTOKEN_SECRETandCOOKIE_SECRETto suitable values. - In the
.envfile, change theDATABASE_URLatchangeMetotypeFighter. - Run the command
sudo service postgresql statusto see if postgresql is running. - If postgresql is not running, run the command
sudo service postgresql start. - Run the command
createdb typeFighterto instantiate the database. - Run the command
npm run db:importto import the schema and initial data. - Run the command
npm run devto start the server and run the client as a live server. - View the client in the browser at
localport:3000. - To view the database on pgweb, open another terminal and run the command
pgweb --db=<insert DATABASE_URL's changeMe from .env>; then, open the browser tolocalhost:8081.

