Skip to content

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

Notifications You must be signed in to change notification settings

Hiyudev/aluraflix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks