REFSZIN / projeto16-shortly

Encurtador de URLs chamado Shortly: Links que cabem no bolso!

Home Page:https://yan-project-shortly.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shortly

Built With

Librariess

Description

Shortly is a back-end application, an REST API FULL.


Features

  • User sign-up and sign-in
  • Create cart.
  • Order Checkout by Cart User id.
  • View products.

API Reference

User Sign Up

https:/projeto16-shortly.vercel.app/
POST /auth/sign-up

Request:

Body Type Description
name string Required. user name
email string Required. user email
password string Required. user password
confirmPass string Required. user confirmpass

Response:

{
  "message": "User successfully registered!"
}

confirmPass must match password

User Sign In

https://projeto14-smartcell-store-front.vercel.app/
POST /auth/sign-ip

Request:

Body Type Description
email string Required. user email
password string Required. user password

Response:

{
  "token": "bcript authorization token"
}

User Sign In

https://projeto14-smartcell-store-front.vercel.app/
POST /products

Request:

Body Type Description

Response:

{
  [...Products]
}

Environment Variables

To run this project, you will need to add the following environment variables to your .env file DATABASE_URL = postgres://UserName:Password@Hostname:5432/DatabaseName PORT = number #recommended:5000

Run Locally

Clone the project

  git clone 

Go to the project directory

  cd projet

Install dependencies

  npm install

Start the server

  npm run dev

Run tests

  npm test

Acknowledgements


About

Encurtador de URLs chamado Shortly: Links que cabem no bolso!

https://yan-project-shortly.herokuapp.com/


Languages

Language:JavaScript 99.7%Language:Shell 0.3%