Simple Node.js + Express web app with three routes and Jest tests.
Usage
- Install dependencies
cd d:\myapp
npm install- Run the app
npm start
# opens at http://localhost:3000- Run tests
npm testDocker
Build image:
docker build -t myapp:latest .Run with docker-compose:
docker-compose up --buildNotes
- The server exposes routes:
/,/app1,/app2. - Tests use
supertestandjest.