Session 13 – Node.js III
1. Backend (Node.js and Postgres)
1. Clone the following repository Repo.
2. Navigate to the project directory
3. Install dependencies
> npm install
4. Run the project
> node server Or > nodemon server
5. Inspect the code and try to understand it, everything is annotated to facilitate your understanding.
2. Frontend (Vue.js)
1. Clone the following repository Repo.
2. Install dependencies
> npm install
3. Compiles and hot-reloads for development
> npm run serve
4. Run the backend app (Node.js), and run the front-end app (Vue.js), and test how they can work together.
5. In the devTools, navigate to the Application tab, then choose "Cookies", under which you should find the created jwt. Check how the jwt is added when a user signup/login, and how it is deleted when the user logout.