This project includes a simple Node.js backend setup using TypeScript and Express. Follow the steps below to get it up and running:
-
Navigate to the
backenddirectory:cd backend -
Install the necessary dependencies:
npm install -
To build the TypeScript files, run:
npm run build -
To start the server, run:
npm start
The server will start and listen on the port specified in the backend/src/server.ts file. You can access the health check endpoint at http://localhost:<port>/health to verify that the server is running.
This project also includes an Angular frontend that interacts with the backend. Follow these steps to set it up:
-
Navigate to the
frontenddirectory:cd frontend -
Install the necessary dependencies:
npm install -
To start the Angular development server, run:
npm start
The Angular application will be available at http://localhost:4200. It fetches data from the backend's /health endpoint and displays it on the home page.