My Docs
DeploymentTrelloCalendar 🗓 Family Promise Roadmap
LAMBDA_LABS_Family_Promise
LAMBDA_LABS_Family_Promise
  • Home
  • navigation
    • Resume
    • My Notes:
    • NAVIGATION
    • Calendar
    • Youtube:
    • Roadmap:
    • TEAM MEMBERS
    • Running List Of Notes Links & Pertinent Info From Meetings
    • Trello
      • Github/Trello Integration
  • UX
    • UX_TOPICS
      • Action Items:
      • Accessibility
      • Figma Notes
        • Tables In Figma
        • Notes
        • Frames in Figma
        • Prototyping In Figma
        • More Notes
      • UX-Design
        • Facebook Graph API
      • Ant Design
        • ANT Components
          • Buttons
        • ANT DOCS
        • Application (Codesandbox)
      • Examples
      • How to add external URL links to your prototype
  • CANVAS
    • Interview
    • Design
      • What's Inclusive Design?
      • Accessibility
      • What are Design Systems?
    • Canvas
      • Career Readiness:
    • Notes
      • User Experience Design
      • User Research
      • Interaction Design
    • UX-Engineer
      • Accessibility
      • Patterns
      • Design Tools
      • UX Principles
      • Design Critiques
      • Product Review
      • Quiz
      • Seven Principles of Design
      • Other Articles
    • Labs
  • Front End
    • Frontend:
    • Redux
  • Back End
    • Backend:
      • API
  • Research
    • Research Navigation
      • Front End
      • Back End
      • UX
      • PTM
      • General
  • DS_API
    • Data Science API
  • ROLES
    • TEAM ROLES
      • Bryan Guner
  • Action Items
    • Trello
    • Maps
  • ARCHITECTURE
    • DNS
    • AWS
    • Heroku
  • Questions
    • From Previous Cohort
  • Standup Notes
    • Meeting Notes
      • Stakeholder Meeting 1
      • 9/29/2021
  • GitHub & Project Practice
    • GitHub
      • Github Guide
      • Github Actions:
      • Live Implementation
  • MISC
    • MISCELLANEOUS
      • Links
  • Background Information
    • Background Info
      • Swagger OPEN API SPECIFICATION
        • Swagger Docs (General)
      • GITHUB:
        • Git Bash
        • Git Prune:
  • DOCS
    • DS AP
    • What is JSON Web Token?
      • Environment Variables
      • Git Rebase:
      • Git Workflow:
      • Linting and Formatting
    • Project Docs
      • Eng-Docs-Home
      • Basic Node API
      • Contributing to this scaffold project
      • Examples:
    • PROJECT DESCRIPTION (Feature List)
    • Labs Learners Guide
    • REACT
      • Create React App
      • Awesome React
    • Labs Engineering Docs
      • Okta Basics
      • Roadmap
      • Repositories
  • Workflow
    • Workflow
    • Advice
  • AWS
    • AWS
      • Elastic Beanstalk
        • Elastic Beanstalk DNS
      • Amplify:
        • Amplify-DNS
    • Account Basics
    • AWS-Networking
  • Career & Job Hunt
    • Career
  • LABS
    • Introduction
    • User Stories
    • Why Pairing?
    • GitHub
    • Planning as an Engineer
    • Authentication and Authorization
      • Authentication VS Authorization
    • Giving Feedback
    • Modules Grades Understanding Your ISA
    • Rest Architecture
Powered by GitBook
On this page
  • Family Promise Service Tracker
  • Schema
  • Status
  • Requirements
  • Documentation
  • Getting Started

Was this helpful?

  1. Back End

Backend:

PreviousReduxNextAPI

Last updated 3 years ago

Was this helpful?

Family Promise Service Tracker

Family Promise needs a way to track and visualize the services they provide external to the shelter to gain actionable insights.

Our goal is to build a generalizable monitoring and evaluation (M&E) platform that meets Family Promise's needs, with an eye toward additional potential use cases that would be useful for many other organizations.

Schema

Status

Requirements

Documentation

  • The documentation for how to work with the JSONB column used for Service Entry data and type models, check out /docs/API-README-SERVICE-ENTRIES.md

  • The current API documentation is found in /docs/API-README.md

  • List of known issues is found in /docs/known-defects.md

  • Pull Request Template found in /docs/pull_request_template.md

Getting Started

Please reference the step by step instructions to setup development environment in /docs/dev-setup.md

Enviornment Variables

  • PORT - API port (optional, but helpful with FE running as well)

    • The following ports are whitelisted for use with okta

      • 3000

      • 8000

      • 8080

  • DS_API_TOKEN - authorization header token for data science api (eg. SUPERSECRET)

  • DEV_DATABASE_URL - connection string for local postgres database

  • OKTA_URL_ISSUER - The complete issuer URL for verifying okta access tokens. https://example.okta.com/oauth2/default

  • OKTA_CLIENT_ID - the okta client ID.

  • OKTA_ORG_URL - The base url for the Okta org

  • OKTA_API_TOKEN - Okta API token

See .env.sample for example values

Setup postgres

There are 3 options to get postgresql installed locally [Choose one]:

    • run: docker-compose up -d to start up the postgresql database and pgadmin.

    • If you need to start over you will need to delete the folder $ rm -rf ./data/pg as this is where all of the server data is stored (ONLY IF YOU NEED TO START OVER)

    • Upon logging into postgres admin on localhost (2nd dash above), you'll see the API-DEV server, but you will need to check if there is a "api-dev" database within that server, if not or if the databases api-dev and api-test were not created then you'll need to create them by right clicking databases, clicking create database, and adding a database for "api-dev" and then start over at step 1. You may need to grant system execution access to the .sh file in docker/pg/pg-init-scripts:

    • Run following from within root: chmod +x ./docker/pg/pg-init-scripts/create-multiple-postgresql-databases.sh

    • make note of the port, username and password you use to setup the database.

    • Connect your client to the server manually using the values previously mentioned

    • You will need to create a database manually using a client.

    • Make sure to update the DATABASE_URL connection string with the values for username/password, databasename and server port (if not 5432).

    • Downside: JSONB column displays as [object Object], so not good when testing/creating JSON queries

    • Sign up for a free Tiney Turtle plan

    • copy the URL to the DATABASE_URL .env variable

    • make sure to add ?ssl=true to the end of this url

Setup the application

  • create your project repo by forking or using this as a template.

  • run: npm install to download all dependencies.

  • run: cp .env.sample .env and update the enviornment variables to match your local setup.

  • run: npm run knex migrate:latest to create the starting schema.

  • run: npm run knex seed:run to populate your db with some data.

  • run: npm run tests to confirm all is setup and tests pass.

  • run: npm run watch:dev to start nodemon in local dev enviornment.

helps local communities coordinate their compassion to address the root causes of family homelessness. They tap existing local resources to empower families towards economic stability. Families come to them in crisis; they help them rebuild their lives with new skills and ongoing support. They address the issue holistically, providing prevention services before families reach crisis, shelter and case management when they become homeless, and stabilization programs once they have secured housing to ensure they remain independent.

Deployed here:

Needs Updating Current Roadmap in , all activity tracked in .

Details on the Labs Node Scaffolding here:

Labs teams must follow all .

DS_API_URL - URL to a data science api. (eg. )

Use docker. for your platform

Open a browser to and you should see the Dev and Test server already defined.

Download and install postgresql directly from the

Setup a free account at

Family Promise
DB Designer Schema Link
https://fp-service-tracker.herokuapp.com/
Notion
Trello
https://docs.labs.lambdaschool.com/labs-api-strarter/
Labs Engineering Standards
https://ds-bw-test.herokuapp.com/
Install
pgadmin
main site
ElephantSQL
https://files.slack.com/files-pri/TSZCHB482-F02D5G11ARK/image.pngfiles.slack.com
GitHub - BloomTech-Labs/family-promise-service-tracker-be-aGitHub
Logo