
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 Reference •
Technology •
Installation
git clone https://github.com/KeysHD/aluraflix.git
npm install
- Create a account on Firebase
- Create new project
- Create a firestore database
- Get Admin SDK json file on the database configuration
- Create a
.env
file
- 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>
- Initialize using the command
npm run dev
Parameter |
Type |
Description |
id |
number |
Required. Id of item to fetch |
Parameter |
Type |
Description |
titulo |
string |
Required. Title to the database |
url |
string |
Required. URL to the database |
Parameter |
Type |
Description |
id |
number |
Required. Id of item to delete |
Parameter |
Type |
Description |
id |
number |
Required. Id of item to delete |
data |
object |
Required. New data object to update |