A Javascript TypeScript port of the Eterna game
The project uses NPM for dependency management, webpack for packaging, and babel to polyfill ES2015 language features into ES5 and earlier.
-
Install
npm
(vianodejs
): -
$ npm install
in root directory -
You may also need to create the
dist/
folder:$ mkdir dist
and install coffeescript vianpm install --save-dev coffeescript
$ npm run test
-
When running locally, run your local web server at http://localhost:63342 or http://localhost:63343 - the eterna server currently allows CORS requests from these two localhost addresses.
-
Create a .env file:
$ cp .env.example .env
and fill in the values.- To start, you can use
APP_SERVER_URL=https://eternagame.org
, and use your actual player ID and password forDEBUG_PLAYER_ID
andDEBUG_PLAYER_PASSWORD
-
Create the directory
dist
:$ mkdir dist
-
Compile and Serve:
$ npm start
Before committing (and on encountering issues), make sure to run npm run typecheck
(to validate the TypeScript) and npm run test
(to run our unit tests, currently just for the folding engines) to make sure no issues were introduced (in the future, we'll also set up CI).
- To do the first puzzle in Eterna, load up
http://localhost:63343/?puzzleID=4350940