Giter VIP home page Giter VIP logo

ig.news_api's Introduction



💁‍♂️ Sobre

O Ignews Api é uma plataforma de CRUD(Create,Read,Update and Delete) de noticias desenvolvido em NodeJs.

🚀 Tecnologias






🏃 Iniciando

Para iniciar esse projeto primeiro precisamos ter o container do MongoDB funcionando para isso:

docker run --name mongodb -p 27017:27017 -d -t mongo

Com o container do MongoDB criado e iniciado abrimos o projeto e executamos na raiz dele o seguinte comando:

Yarn yarn Npm npm install

Bibliotecas instaladas, estamos prontos para colocar a aplicação para funcionar e para isso:

Yarn yarn dev:server Npm npm run dev:server

🚦 Rotas da Api

📝 Posts
  • GET : http://localhost:3333/posts

Rotas Autenticadas

Header:Bearer token...

  • POST : http://localhost:3333/posts
  • GET : http://localhost:3333/posts/:id
  • PUT : http://localhost:3333/posts/:id
  • DELETE : http://localhost:3333/posts/:id

Formatos de JSON ,POST e PUT { "title":"Titulo da postagem", "content":"Conteudo da postagem" }

📝👨‍💼 Post do usuário
  • GET : http://localhost:3333/userPost
👨‍💼 Usuários
  • POST : http://localhost:3333/users

Rotas Autenticadas

Header:Bearer token...

  • GET : http://localhost:3333/users/:id
  • PUT : http://localhost:3333/users/:id
  • DELETE : http://localhost:3333/users/:id

Formatos de JSON ,POST e PUT { "name":"Jhon Doe", "email":"[email protected]", "password:"verySecretPass" }

🔒 Autenticação
  • POST : http://localhost:3333/auth

Formatos de JSON ,POST { "email":"[email protected]", "password:"verySecretPass" }

ig.news_api's People

Contributors

lucasveloso2017 avatar

Watchers

 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.