Skip to content

API to see where you can bring your donations managing users and roles to register centers.

Notifications You must be signed in to change notification settings

itofarina/qtpd-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

¿Qué tenés para dar? - API

Introduction

This is a RESTful API to show where the users can bring their donations based on what they have to donate and where they are. By using this API you can handle users with roles, centers and donation types.

Installation

  • To install the API run:
    npm install
    

Environment configurations

In order to run the app. You need to provide the following variables for the project:

  • API:
    • PORT - the port where the api will run
    • MONGODB_URL - the url where the mongo database lives and its name. (e.g.: =mongodb://127.0.0.1:27017/qtpd-db)
    • JWT_SECRET - Json web token secret key
    • The following data is needed to send emails from a gmail account:
      • EMAIL_USER
      • GMAIL_CLIENT_ID
      • GMAIL_CLIENT_SECRET
      • GMAIL_REFRESH_TOKEN Note: For development purposes, I would recommend to provide those variables in a file 'dev.env' under a 'config' folder in the root folder of the api project

Usage

  • To start the API run:
    npm start
    

Development

  • To run the API in development mode:
    npm run dev
    

Docker

A Dockerfile is provided in order to create your own image. Note that you will need to provide the environment variables for the docker image.

Authors

Martin Manzo & Alvaro Farina

About

API to see where you can bring your donations managing users and roles to register centers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published