Skip to content

tino-q/minesweeper-typescript

Repository files navigation

Minesweeper

This is a typescript express API for playing a the well known minesweeper game.

It uses DynamoDB for persistance and Jest for testing.

The application is currently hosted in a EC2 managed by ElasticBeanstalk using a dockerized environment (check the Dockerfile)

SSL is certified by LetsEncrypt :)

Check the swagger docs here

You can play the game clicking here

Installation and execution

npm install is enough to run the tests (npm test).

You'll need a local running version of dynamo to run the application.

To run the app get the jar distribution of DynamoDB and run it using:

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

Take note of the port on which dynamo starts and set the environment variable accordingly

BOARD_TABLE_ENDPOINT=http://localhost:{DynamoDBPort}

Environment variables are loaded from the .env file using the dotenv package.

Once the application is running you can check the swagger documentation at http://localhost:8080/swagger

About

This project was written and is maintained by Martin Queija.

License

This project is licensed under the MIT License.

About

Express-TypeScript Minesweeper game API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published