Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.02 KB

README.md

File metadata and controls

47 lines (34 loc) · 2.02 KB

Running the Backend (Nodejs)

installing nodejs

Nodejs is required for npm and for running the backend.

1. Download nodejs from: https://nodejs.org/en/download/package-manager. Please install the latest v22.5.1
2. Depending on your machine, you can download the any package that suits your needs.

Installing The all of the backend packages and dependencies

All our packages and dependencies is really simple.

1. Run the command: npm install

Running the server

After downloading nodejs, it's time to run the server.

1. go into the backend directory.
2. type the command > node index.js
3. After the command is run, the server should be running on host: http://localhost:3000

Running the Frontend (Angular)

First of all. You need to install DaisyUI and Tailwind before installing angular

Installing Tailwind

Please refer to the following YouTube video for instructions on how to install Tailwind: https://youtu.be/h-On4H5FeQY?si=Bv2YyWBH1Mz5OoPF

Installing DaisyUI

DaisyUI is a Tailwind plugin. Meaning to need Tailwind installed to install DaisyUI.

1. Go into the folder "frontend\master-oop" 2. run the command: npm i -D daisyui@latest

Installing Angular

Angular is needed for the front end

1. In the command prompt, run the command npm: install -g @angular/cli@latest

Installing The rest of the frontend packages and dependencies

Installing all our packages and dependencies is straightforward. Go into the "frontend\master-oop" directory

1. Run the command: npm install

Running the Frontend

  1. change directories to the "master-oop" subdirectory within the frontend subdirectory. This can be done using the command cd frontend/master-oop

  2. Once inside master-oop, run the command ng serve --open. This runs the app

Generating a component in Angular

  1. Go into the directory "frontend\master"
  2. run the command: ng generate component <component_name>