19 lines
664 B
Markdown
19 lines
664 B
Markdown
# Express hello world
|
|
|
|
A joke application.
|
|
|
|
## How to set up
|
|
|
|
Note: I'm assuming you're running Ubuntu 22.04.
|
|
|
|
* Get nodejs and npm ready
|
|
- Run `sudo apt update` and `sudo apt install nodejs`. Check that worked with `node -v`.
|
|
- Run `sudo apt install npm`. Check that worked with `npm -v`.
|
|
* Init an npm project: `npm init -y`
|
|
* Modify `package.json`: you might want to add dependencies.
|
|
* Potentially add a `start script`.
|
|
|
|
## How to run
|
|
|
|
* You can get the dev containers up and running with `npm run start:containers`. You can visit the app at `localhost`.
|
|
* If you would rather only run the express app locally, you can just do `npm run start` instead.
|