secajs/README.md
2025-02-14 23:45:58 +01:00

29 lines
772 B
Markdown

# Express hello world
A joke application.
## How to set up dev environment
* Pre-requisites
+ `docker` and `docker compose`
+ `node` and `npm`
* Run `npm install`
* You can now start the app in a container by running `npm run start:containers` (and shut it down with `npm 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 format` and lint with `npm run lint`.