For this application you need a set of tools. NodeJS allows you to run JavaScript code on the server. So we don't need to learn two different languages for front- and back-end.
- Download Volta and install it. Volta helps us to manage multiple versions of NodeJS at the same time, and let's us switch between them on a project basis.
- If you're working on a windows machine, make sure to enable Developer-Mode.
- Use
volta install node@latest
to install the latest version of NodeJS. This automatically installsnpm
, a package manager for NodeJS.
Of course you can just install NodeJS normally via a download and this project will work fine.
To run this application, open your terminal with the path of your this project and execute:
npm install
npm start
If done correctly, you should see a message in the terminal that says:
Listening on: http://localhost:8080
After that, open up a browser-instance and navigate to http://localhost:8080.