In this post, let’s start very quickly on a NodeJS project. Of course we will have enough functionalities to work: express, log, jwt, database, …
1. Setup
I use MacOS with zsh
installed, so I would use take
instead of mkdir && cd:
Add following folders to build the basic structure:
2. Dependencies
We will need quite a few dependencies:
Add nodemon for smoothier development experience:
3. The famous index.js
Let’s get started with some stuff in index.js:
4. The less famous router.js
Add following initial stuff to router.js
5. And start it