Skip to content

cursosLabra/EjemploNode_Mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of a RESTful API in Node and Express

This example is based on this tutorial

I have simplified the example using a local MongoDB installation and changing bears for alumnos.

Requirements

  • Node and npm

Installation

  • Clone the repo
  • Install dependencies: npm install
  • Start the server: node server.js

Testing the API

Test your API using Postman

URIs: 
GET http://localhost:3000/api/alumnos
GET http://localhost:3000/api/alumnos/:id
POST http://localhost:3000/api/alumnos
PUT http://localhost:3000/api/alumnos/:id
DELETE http://localhost:3000/api/alumnos/:id

About

Ejemplo simple usando NodeJs, Express y Mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published