01: hello, world!

Where else to start? :)

01_hello_world
Author

Kennedy Mwavu

Published

July 10, 2024

Run app

  1. cd into the 01_hello_world/ dir:

    cd 01_hello_world/
  2. Fire up R:

    R
  3. Restore package dependencies:

    renv::restore()

    Once done, exit R.

  4. 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:

For every other path, it will response with a 404 Not Found.

Static files

Learn how to serve ✨Static Files✨ using ambiorix.