This app will randomize width x height matrix and will draw it on the screen.
Furthermore, you can find how many islands the random matrix has by pressing solve.
- API
- NodeJS
- Express
- Web
- React
- Technologies
- Docker
- Docker compose
-
Prerequisites
- git
- Node (
v10.x
) - Docker
- Docker Compose
git clone https://github.com/RavidEliyahu/islands-bitmap.git
cd islands-bitmap
Install the project's dependencies using npm
and then start the application.
cd server
npm install
npm run start
To test the Express server, browse to the URL http://localhost:5000/.
Open a second terminal and type:
cd client
npm install
npm run start
Open http://localhost:3000 to view it in the browser.
git clone https://github.com/RavidEliyahu/islands-bitmap.git
cd islands-bitmap
docker-compose up -d --build server client
When it finish building you can access the client via browser: http://localhost:3000
For server logs you can use:
docker logs -f server
Don't forget to terminate the session after you finished using it with:
docker-compose down