Coder Social home page Coder Social logo

bieanimaton / nlw-heat-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 61 KB

Servidor desenvolvido com NodeJS, Typescript e várias bibliotecas. - Next Level Week (NLW) Heat by Rocketseat.

Home Page: https://nlw-heat-server-bie.herokuapp.com/

HTML 3.57% TypeScript 42.85% Procfile 0.08% JavaScript 53.50%
express nodejs cors jsonwebtoken prisma sqlite ts-node-dev axios server socket-io

nlw-heat-server's Introduction

NLW Heat Server

API Documentation 📚

Base URL

  http://localhost:4000

GET:

Return all user informations.

  GET /profile
Parameter Type Description
bearer token (HEADER AUTH) string Mandatory. Token for user confirmation.

Return the last 3 messages from database.

  GET /messages/last3

POST:

Creates a new message on database with relation by user (through Token).

  POST /messages
Parameter Type Description
message (BODY) string Mandatory. User message.
bearer token (HEADER AUTH) string Mandatory. Token for verify each user.

Authenticates the user for post messages.

  POST /authenticate
Parameter Type Description
code (BODY) string Mandatory. The code inserted is the same as returned by GitHub Oauth, following the link: http://localhost:4000/github.

How Install 📑

# Create folder for store the files, like 'nlw-heat-server'

# Clone the project
git clone https://github.com/BieAnimaton/nlw-heat-server

# To install all libraries
yarn

# To start
yarn dev

# The server will start in port 4000
# Access http://localhost:4000

Features 🛠️

  • NodeJs
  • Typescript
  • Express
  • Prisma
  • Cors
  • Dotenv
  • Jsonwebtoken
  • Axios
  • Socket.io

nlw-heat-server's People

Contributors

bieanimaton avatar

Stargazers

 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.