Just a app for training the backend with express and Mongoose and connect to frontend, that was done in Angular
- NodeJS v18.16.0
- MongoDB v7.0.0
- Express
- Mongoose
- Angular
Go to folder
cd backend
Install all the dependecies
npm i
To run server
nodemon index.js
Backend port: http://localhost:3000/
mongoose port: mongodb://localhost:27017
HTTP Verbs | Endpoints | Action |
---|---|---|
GET | /jokes | To get all jokes |
POST | /jokes | To save a new joke |
DELETE | /jokes/:id | To delete a single joke |
"_id": "644ac288c9f67664f20abdd7",
"id": "R7UfaahVfFd",
"joke": "My dog used to chase people on a bike a lot. It got so bad I had to take his bike away.",
"status": 200
}
Go to folder
cd frontend
Go to dad jokes folder
cd dad-jokes
Install Angular CLI
npm install -g @angular/cli
Install all the dependecies
npm i
to run angular
ng server
Front end runs in the port: http://localhost:4200/
- Download MongoDB - (for Windows)
- Download Nodejs
- Mongoose
- Express
- Angular
- Api used