Skip to content

lynx-agenda/Agenda-Elobby-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agenda-Elobby (backend)

Implementación del backend para el proyecto Agenda Elobby.

Project set up

Si quieres levantar el servidor en local:

  1. Clona el repositorio:
git clone https://github.com/lynx-agenda/Agenda-Elobby-backend.git
  1. Accede a la carpeta Agenda-Elobby-backend y continuación instala las dependencias:
cd Agenda-Elobby-backend
npm install
  1. Establece el fichero .env con las variables de entorno
API_VERSION=v1

HOST=localhost
PORT=27017

DB_PASSWORD=adf782_A
DB_NAME=elobbyDB
DB_USERNAME=lucid-lynx 

SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# Third party APIs keys
GOOGLE_BOOKS_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TMDB_API_KEY=dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RAWG_IO_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

REDIS_URL=redis://127.0.0.1:6379
  1. Levanta el servidor de redis
// Install redis server
sudo apt-get install redis

// start redis server
redis-server
  1. Levanta el backend:
npm start

Close the local server with CTRL + c.

To restart the local server, run npm start from within the Agenda-Elobby-backend folder.

Deployment

El backend se encuentra desplegado en Heroku y configurado para desplegarse automáticamente ante cada push que se realice en la rama main del proyecto.

Guía para desplegar una aplicación de Node.js en Heroku: enlace

Technology Stack

El proyecto se implementó utilizando [Node v14.x] y utilizando las siguientes teconologías:

Members

License

MIT