Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 898 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 898 Bytes

awful-drawful

A clone of Drawful using express, socket.io and Vue.js.

Getting started

npm install
npm run client:dev   # watches and builds UI app and serves on port 3001
npm run server:dev   # watches and rebuilds app server and proxies UI requests to UI server

Open http://localhost:3000.

Running in production

npm run build
npm start

Development

Set runtime environment variables for development by creating a .env file in the root of the project. E.g.

DEBUG=app*
DEFAULT_COUNTDOWN=5

A game for testing is always created with the id ABCD. Unlike other rooms, won't be destroyed when there are no players left.

Unit tests

To run unit tests:

npm run test

Integration tests

Tests are located in cypress/integration.

To run integration tests:

npm run test:integration