Git Product home page Git Product logo

projeto19-drivenpass-back's Introduction

projeto19-drivenpass-back

Driven Pass API

https://projeto-driven-pass.herokuapp.com

API Documentation

https://projeto-driven-pass.herokuapp.com/api-docs/#/

Run locally

Clone the project

  git clone https://github.com/marykarakida/projeto19-drivenpass-back

Go to the project directory

  cd projeto19-drivenpass-back/

Install dependencies

  npm install

Create database

  npm prisma generate dev

Start the server

  npm run start

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PORT

  • if not provided, 4000 is the default port

DATABASE_URL (required)

  • database connection string
  • pgsql format: postgresql://[user[:password]@][netloc][:port][/dbname]

SHADOW_DATABASE_URL

  • database connection string
  • second, temporary database that is created and deleted automatically each time you run a development-focused command and is primarily used to detect problems such as schema drift
  • pgsql format: postgresql://[user[:password]@][netloc][:port][/dbname]

ACCESS_TOKEN_SECRET && REFRESH_TOKEN_SECRET && CRYPT_SECRET (required)

  • secret key to hash/encrypt data
  • as suggestion to generate key, run in your terminal:
  node 
  require("crypto").randomBytes(64).toString("hex")

Tests (Thunder Client)

import thunder-collection_drivenpass.json and thunder-environment_drivenpass.json in thunderclient

ENV VARIABLES IN THUNDERCLIENT

  • accessToken
  • refreshToken
  • BASE_URL

projeto19-drivenpass-back's People

Contributors

marykarakida avatar

Stargazers

João Vitor de Camargo avatar Lucas Palharini avatar Darlon Gomes avatar Paulo Cruz avatar Cecília Siman Salema avatar  avatar Arthur Akira avatar Emily Nakano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.