Skip to content

BIDMCDigitalPsychiatry/AppMapDB

Repository files navigation

AppMapDB

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Cloud Setup/Configuration

AWS Amplify/Authentication Setup

Note: The below commands will ask you to login with a username via the web console. This username should have admin priveleges so the CLI can perform the necessary actions.

  1. npm install -g @aws-amplify/cli - installs the amplify cli so it can be used via the command line
  2. amplify configure - creates the amplify admin user and stores credentials in ~/.aws/credentials. I'm not sure if this is for granting permissions to the CLI or if it is required for the amplify project. I would guess it is for the CLI and can be deleted after the project has been setup.
  3. amplify init - creates up the amplify project
  4. amplify add auth - adds authentication to amplify project
  5. amplify push - pushes the project to the cloud

AWS Lambda Function Installation

  1. Add the AWS Lambda Execute or Full Control permissions to the Unauth role created by the Amplify/Authentication Setup.
  2. In the cloud_functions/app-store-cors-proxy-aws directory, run npm install to generate the node_modules directory.
  3. Zip contents of the cloud_functions/app-store-cors-proxy-aws folder and upload to AWS lambda console.
  4. Expose the lambda function via the desired endpoint (http) so the client app can access it.

Dynamo DB

  1. Add the AWS Dynamo DB permissions to the Unauth role created by the Amplify/Authentication Setup.
  2. In the Dynamo DB web console create the applications table

About

The Division of Digital Psychiatry AppMap database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published