Skip to content

ciisiq/dad-jokes-express-mongoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dad Jokes Full-Stack APP

Just a app for training the backend with express and Mongoose and connect to frontend, that was done in Angular

Project pre-view

Tecnologies used:

  • NodeJS v18.16.0
  • MongoDB v7.0.0
  • Express
  • Mongoose
  • Angular

Back end Folder

⚠️ You need to have MongoDB and Nodejs installed!

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

API Endpoints

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

Example data

 "_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
}

Front end folder

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/

Documentations

About

Training express and mongoose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published