Skip to content

proscrumdev/battleship-nodejs

Folders and files

NameName
Last commit message
Last commit date
Feb 6, 2022
Mar 6, 2020
Feb 6, 2022
Oct 7, 2020
Mar 6, 2020
Feb 6, 2022
Mar 6, 2020
Feb 20, 2023
Jun 10, 2022
Mar 28, 2022
Feb 6, 2022
May 4, 2023
Feb 4, 2022
Dec 10, 2024
Dec 10, 2024

Repository files navigation

Build status

Battleship NodeJs

A simple game of Battleship, written in NodeJs. The purpose of this repository is to serve as an entry point into coding exercises and it was especially created for scrum.orgs Applying Professional Scrum for Software Development course (www.scrum.org/apssd). The code in this repository is unfinished by design.

Getting started

To edit and debug this project, you can use Visual Studio Code or any other suitable editor. You might want to install these extensions to better support this project in VSCode:

Run locally

Install packages

npm install

Run battleship

node index.js

Execute tests

Execute all tests

npm test

Execute Mocha tests

mocha './**/*Tests.js'

Execute Cucumber-js tests

./node_modules/.bin/cucumber-js .\GameController_ATDD

Docker

To run and test the project in a container, use these steps:

docker run -it -v ${PWD}:/battleship -w /battleship node bash
npm install
npm test
node index.js