Adding requirements
Starting from the scaffolded project we created at the end of the previous chapter, we need to add a few modules from NPM that are specific to our journaling application. Additionally, we will need to add a pre-made script with functions that handle authentication and a style sheet with global rules.
Because these things are specific to our journaling application, they were not included in the scaffolding steps from the previous chapter, which were more generic for every application instead.
Launching the back-end service
In order for the following examples to work, you'll need to ensure that the API server is running on your laptop. Refer to the instructions in Chapter 2, Scaffolding Your Svelte Project for how to launch it.
Dependencies
Run the following command to add dependencies from NPM (because these modules are included in our application's bundle and not just used at build time, we are adding them as dependencies rather than devDependencies...