Skip to content

TortugaPower/bookplayer-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
yamil
Jul 22, 2024
5e7ae4e · Jul 22, 2024
Dec 13, 2023
Jul 22, 2024
Jul 5, 2022
Sep 10, 2023
Jul 5, 2022
Sep 10, 2023
Oct 13, 2023
Jun 17, 2023
Jun 17, 2023
Dec 13, 2023
Jul 9, 2023
Dec 13, 2023
May 21, 2022
Jul 1, 2024
Apr 11, 2022
Jul 1, 2024

Repository files navigation

Note

We're still in the process of migrating the repository from an individual account on Bitbucket to the org account here on Github

About

This is the backend used to power the cross-device sync feature of BookPlayer

Hosting

We're currently using AWS to host our servers:

  • EC2 + ELB - for the node instances and load balancing between the nodes
  • RDS - PostgreSQL instance
  • S3 - for all the files storage
  • Elasticache - Redis for websockets (although we stopped using them in the app around v5.0.3)

Local setup

Requirements:

  • NodeJS (v16)
    • Yarn
  • PostgresSQL
  • Redis

After cloning the repository:

  • Duplicate development.env.template into .development.env
    • Fill the environment variables with your DB info and S3 info
  • Run yarn on the repository path to install the dependencies
  • Make sure the local redis server is up and the DB is accessible, and run yarn run dev to start the server

Additional resources

  • Postman collection

    Run in Postman

  • Whimsical sequence diagrams (link)