cfpb / sbl-frontend

Small Business Lending Filing Application
MIT License
0 stars 1 forks source link

Small Business Lending

A small app to explore Typescript, Vite and React.

Features

Getting started (Updated 12/13/2023)

  1. Install Node v16.9+: nvm install && nvm use

  2. Enable corepack: corepack enable.

  3. Docker engine version 1.13.0+ with docker compose version 3.0+ support needs to be installed to run all the containerized support services.

  4. Have the five repos sbl-frontend, sbl-project, regtech-user-fi-management, sbl-filing-api, and regtech-mail-api as sibling directories.

    code-root
    ├── regtech-mail-api
    ├── regtech-user-fi-management
    ├── sbl-filing-api
    ├── sbl-project
    └── sbl-frontend (current repository)
    
  5. Make sure to git pull in each of the five directories to have the latest commits.

  6. Create a .env based on the ENV-GUIDE.md.

  7. At the sbl-frontend command line, run yarn start. This script uses docker-compose to start up Docker containers of all of the project components (User management, API, Frontend) to get you up and running.

  8. At the sbl-frontend command line, run yarn seed to generate the necessary mock data in the backend systems.

Setting up your VS Code environment

If you'll be using VS Code, be sure to:

  1. Open this app/ dir in VS Code so that it's the workspace root. Otherwise imports may not work.
  2. Install this project's suggested plugins (you should see a VS Code pop-up).
  3. Use the workspace version of Typescript (you should see a VS Code pop-up). This is required and unfortunately can't be automatically applied.

Scripts

Dev Tools

The following commands can be used from the browser console when in a dev environment: