Starting a new repository

Our back-end code is encapsulated and exposed only through the API. Therefore, our front-end web application must interact with our back-end code through this API. Because our back-end and front-end are well-decoupled, it makes sense for us to create a new repository for our front-end application.

$ mkdir -p ~/projects/hobnob-client$ cd ~/projects/hobnob-client$ git init
You may want to use ESLint to help keep your code tidy. You can use the same eslint --init wizard as before to generate the .eslintrc file. However, this time, when it asks you Do you use React?, pick Yes instead of No.

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.