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 backendInstall all the dependecies
npm iTo run server
nodemon index.jsBackend 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 frontendGo to dad jokes folder
cd dad-jokesInstall Angular CLI
npm install -g @angular/cliInstall all the dependecies
npm ito run angular
ng serverFront end runs in the port: http://localhost:4200/
- Download MongoDB - (for Windows)
- Download Nodejs
- Mongoose
- Express
- Angular
- Api used
