Run app
cd
into the01_hello_world/
dir:cd 01_hello_world/
Fire up R:
R
Restore package dependencies:
::restore() renv
Once done, exit R.
index.R
is the entry point. To start the app, run this on the terminal:Rscript index.R
Explanation
This app starts a server and listens on port 3000 for connections.
It has 2 endpoints:
/
: localhost:3000//about
: localhost:3000/about
For every other path, it will response with a 404 Not Found.
Static files
Learn how to serve ✨Static Files✨ using ambiorix.