Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 3.24 KB

README.md

File metadata and controls

102 lines (78 loc) · 3.24 KB

Logo

Alura Challenge Back-End

This is a challenge proposed by Alura (a Brazilian online education platform).

The challenge focused on the Back-end, it consisted of simulating a real situation of a company in the labor market. We had four weeks to complete four challenges, ranging from making a REST-API to a functional AUTH API.


API ReferenceTechnologyInstallation

Installation

git clone https://github.com/KeysHD/aluraflix.git
npm install

Setting up

  1. Create a account on Firebase
  2. Create new project
  3. Create a firestore database
  4. Get Admin SDK json file on the database configuration
  5. Create a .env file
  6. Copy and paste the informations on the variables
type=<YOUR_INFORMATION>
project_id=<YOUR_INFORMATION>
private_key_id=<YOUR_INFORMATION>
private_key=<YOUR_INFORMATION>
client_email=<YOUR_INFORMATION>
client_id=<YOUR_INFORMATION>
auth_uri=<YOUR_INFORMATION>
token_uri=<YOUR_INFORMATION>
client_x509_cert_url=<YOUR_INFORMATION>
  1. Initialize using the command npm run dev

API Reference

Get all items

  GET /videos

Get item

  GET /videos/{id}
Parameter Type Description
id number Required. Id of item to fetch

Post item

  POST /videos
Parameter Type Description
titulo string Required. Title to the database
url string Required. URL to the database
  DELETE /videos/{id}
Parameter Type Description
id number Required. Id of item to delete
  PUT /videos
Parameter Type Description
id number Required. Id of item to delete
data object Required. New data object to update

Technology

HTML5 CSS3 Styled components JavaScript React Express Firebase