Skip to content

Your task is to build an API and database for the VUTTR (Very Useful Tools to Remember) application. The application is a simple repository for managing tools with their names, links, descriptions and tags.

License

Notifications You must be signed in to change notification settings

CaioStoduto-zz/BossaBox-VUTTR-Challenge

Repository files navigation

BossaBox-VUTTR-Challenge

Build Status Codacy Badge CodeFactor Known Vulnerabilities Codacy Badge FOSSA Status

Your task is to build an API and database for the VUTTR (Very Useful Tools to Remember) application. The application is a simple repository for managing tools with their names, links, descriptions and tags.

AWS - http://54.233.153.138:3000/

Summary

Challenge

Your task is to build an API and database for the VUTTR (Very Useful Tools to Remember) application. The application is a simple repository for managing tools with their names, links, descriptions and tags. Use a Git repository (public, preferably) for versioning and making the code available.


Challenge image (Google Translated)

Documentation

All the files have comments in the code.

Description of the API (each route)

The function of each route is described in the file index.apib.

Installation

# yarn
yarn install

# or npm
npm install

Requirements

How to Use

You need to edit the file .env, above explains what each option does

Description (.env)

  • COOKIES_SECRET (More info)
    A random string that will encrypt and sign the cookies 🍪
    Example: Vanilla

  • DB_AUTH
    A string that contains the database protocol, the username, password and host
    mongodb+srv://<username>:<password>@cluster0.aaaaa.bbb.mongodb.net/<dbname>

  • DB_NAME
    The database name
    mongodb+srv://<username>:<password>@cluster0.aaaaa.bbb.mongodb.net/<dbname>

  • GITHUB_PUBLIC
    The GitHub OAuth public key
    Example: f5234892909e905f5eee

  • GITHUB_SECRET
    The GitHub OAuth secret key
    Example: 6953076013f8e8a79b601781da3ea84a7f70415c

  • JWT_SECRET (More info)
    A random string that will encrypt and sign the JWT (JSON Web Token)
    Example: idk, a random string

  • PORT (More info)
    "A 16-bit unsigned number, known as the port number" ~ Wikipedia
    Default: 3000

Example (.env)

COOKIES_SECRET=Gradma´s love
JWT_SECRET=1234567890
DB_AUTH=mongodb+srv://user:[email protected]
DB_NAME=database
GITHUB_PUBLIC=f5234892909e905f5eee
GITHUB_SECRET=6953076013f8e8a79b601781da3ea84a7f70415c
PORT=897

Tools Used

Tests

Build Status Codacy Badge

The only missing tests are errors that are difficult to reproduce, but their results are predictable and tested, and OAuths, that cannot be tested automatically.

License

FOSSA Status

About

Your task is to build an API and database for the VUTTR (Very Useful Tools to Remember) application. The application is a simple repository for managing tools with their names, links, descriptions and tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •