No description, website, or topics provided.
JavaScript CSS HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
auth
client
content
.eslintrc
.gitignore
LICENSE
Procfile
README.md
client.html
gulpfile.js
package.json
pengu.js
poly.js
server.js

README.md

pengu

pengu is lightweight web chat built with HTML5 resembling Club Penguin.

Installation

  1. Create the following table in PostgreSQL database and set DATABASE_URL to correct connection string.
CREATE TABLE "penguin" (
	"name" character varying NOT NULL PRIMARY KEY,
	"closet" json DEFAULT '[]' NOT NULL,
	"clothing" json DEFAULT '[]' NOT NULL,
	"registered" timestamptz DEFAULT current_timestamp NOT NULL
);
  1. Run npm install
  2. Compile assets using npm run-script postinstall
  3. Start with npm start, the game will run on port set by PORT env variable.

Configuration

pengu uses these environment variables for configuration:

  • PORT – The port a web server will be running on; if not specified it defaults to 8080.
  • DATABASE_URL – Connection string of PostgreSQL database; if ommited, persistence will be missing.

Licensed under MIT.