In many cases, most developers will have already set up their own boilerplate code that they use for Node applications. One reason for this could be that there is more than one right way of doing things. Usually, your boilerplate will cover the initial functionalities of your application, such as user schema, sign-in, and registration.
Because we already have a solid base from the initial two chapters, we can reuse a lot of the code base. I've already put together a simple base application that we can start with. Just follow these steps to clone the project:
Clone the project from GitHub at https://github.com/robert52/express-api-starter.
Rename your boilerplate project to
jobboard
.If you want, you can stop pointing to the initial Git repository by running the following command:
git remote remove origin
Jump to your working directory:
cd jobboard
Install all dependencies:
npm install
Create a development configuration file:
cp config/environments/example.js config...