Arvutiteaduse instituut
  1. Kursused
  2. 2022/23 sügis
  3. Veebirakenduse loomine (LTAT.05.004)
EN
Logi sisse

Veebirakenduse loomine 2022/23 sügis

  • Home
  • Lectures
  • Practicals
  • Homework Submission
  • Message Board

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.

  • Arvutiteaduse instituut
  • Loodus- ja täppisteaduste valdkond
  • Tartu Ülikool
Tehniliste probleemide või küsimuste korral kirjuta:

Kursuse sisu ja korralduslike küsimustega pöörduge kursuse korraldajate poole.
Õppematerjalide varalised autoriõigused kuuluvad Tartu Ülikoolile. Õppematerjalide kasutamine on lubatud autoriõiguse seaduses ettenähtud teose vaba kasutamise eesmärkidel ja tingimustel. Õppematerjalide kasutamisel on kasutaja kohustatud viitama õppematerjalide autorile.
Õppematerjalide kasutamine muudel eesmärkidel on lubatud ainult Tartu Ülikooli eelneval kirjalikul nõusolekul.
Courses’i keskkonna kasutustingimused