Skip to content

A singleplayer shooting game using JavaScript, HTML, CSS, PostgreSQL and Express.js

Notifications You must be signed in to change notification settings

hanxianxuhuang/ftd-singleplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftd-singleplayer

A singleplayer shooting game

Tools

JavaScript, jQuery, HTML, CSS, PostgreSQL, Restful API, Node.js, Express.js, Ajax and Middleware

Setup

VM

A Ubuntu Server (others may also work) that has network connection configured to either Bridged or NAT

Installing required packages

sudo apt install nodejs npm postgresql

Setting up PostgreSQL

sudo -u postgres createuser webdbuser
sudo -u postgres psql

ALTER USER webdbuser WITH ENCRYPTED PASSWORD 'password';
CREATE DATABASE webdb;
GRANT ALL PRIVILEGES ON DATABASE webdb TO webdbuser;
EXIT

Setting up and starting the server

# cd into the directory
chmod +x setup.bash && ./setup.bash

Usage

  • npm start if the server has not started
  • Visit IP_ADDRESS:8000 in browser (use ip a to determine IP_ADDRESS)

About

A singleplayer shooting game using JavaScript, HTML, CSS, PostgreSQL and Express.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published