No description
| .vscode | ||
| caddy | ||
| other | ||
| src | ||
| tests | ||
| .env.dist | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierrc | ||
| docker-compose.yml | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Express hello world
A joke application.
How to set up dev environment
- Pre-requisites
dockeranddocker composenodeandnpm
- Run
npm install - You can now start the app in a container by running
npm run start:containers(and shut it down withnpm run stop:containers).
How to test
- Run
npm run test
How to deploy
The app has never been deployed in production, so there's a lot of things to polish.
The (hypothetical) approach is to:
- Spin up a linux box.
- Install node, caddy and postgres.
- Configure them all nice and stuff so they work together and have a reasonable production set up.
- Set up the node app with systemd so it runs proper.
Other
- You can format with
npm run formatand lint withnpm run lint.