Skip to content

💰 Backend for expense tracker. Written using Serverless Framework, Apollo Server, AWS Lambda and PostgreSQL

Notifications You must be signed in to change notification settings

dives-app/dives-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dives Backend

Requirements

  • docker with docker-compose

Running backend

First clone the repository and enter it

To start containers use docker-compose up

To stop containers use docker-compose down

Want to hide messy logs? Use docker-compose up -d

Updating backend

To update the backend run

git pull
docker-compose up --build

Endpoints

GraphQL API runs on http://localhost:3000/dev/graphql

Adminer - a tool to explore the database runs on http://localhost:8080

Developing backend

Additional development requirements

  • yarn - for conflict resolutions
  1. Install dependencies npm run build:local or npm_config_build_from_source=true yarn
  2. Edit sample config files
    • serverless-sample.yml -> serverless.yml
    • env-sample.yml -> env.yml
  3. Change db to localhost in env.yml
  4. Run npm run dev. It starts the database and Adminer using docker-compose and starts serverless offline with nodemon for reloading
  5. Run npm run migration:run to create empty database tables

About

💰 Backend for expense tracker. Written using Serverless Framework, Apollo Server, AWS Lambda and PostgreSQL

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages