Coder Social home page Coder Social logo

nodejs-backend-api-projects's Introduction

πŸš€ Basic exemple backend with NodeJs (BackEnd - Projects - API) πŸš€

πŸ’» Project

This project an example was created addressing concepts of nodeJS, API REST, mΓ©todos HTTP e middlewares.

This API is used as a backend in the [reactjs-frontend-projects] (https://github.com/ThiagoMenesesVieira/reactjs-frontend-projects) example.

πŸš€ Technology

This project was developed with:

  • NODE
  • REST API
  • HTTP methods
  • Middleware

πŸ’» Routes

  • GET (List)
http://localhost:3333/projects
  • POST (Create)
http://localhost:3333/projects

#Send
  {
    "title": "App mobile",
    "owner": "Thiago"
  }
#Preview
  {
    "id": "72bc5a5d-3bab-4e0f-b34b-5df7fed7df67",
    "title": "App mobile",
    "owner": "Thiago"
  }
  • PUT (Update)
http://localhost:3333/projects/72bc5a5d-3bab-4e0f-b34b-5df7fed7df67
#Send
  {
    "title": "App",
    "owner": "Thiago"
  }

#Preview
  {
    "id": "44462423-dbd7-43ed-be03-97e5fb71d807",
    "title": "App",
    "owner": "Thiago"
  }
  • DELETE
http://localhost:3333/projects/72bc5a5d-3bab-4e0f-b34b-5df7fed7df67

#Return status 204 No Content
#Preview: No body returned for response

β„Ή How to use

To clone and run this API, you will need [Git] (https://git-scm.com) and [Node.js] (https://nodejs.org/pt-br/) installed on your computer.

On your command line:

# Clone this repository
git clone https://github.com/ThiagoMenesesVieira/nodejs-backend-api-projects

# Go to the repository
cd .\exempleNodeJs

# Install the dependencies
npm install

# Start the Backend 
npm run dev

# Use the sample HTTP method routes

Make with β™₯ by Thiago Meneses Vieira Linkedin.

nodejs-backend-api-projects's People

Contributors

thiagomv-ca avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.