Skip to content

iphone app for UC Davis Health as part of Sac State 2021 Senior Project. Created with React Native, Nodejs, MongoDB, Docker, and JWT authenication.

License

Notifications You must be signed in to change notification settings

Final-Iteration/DigitalDavis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

UCD Digital Davis Initiative - Nirvana

UCD_works_12

Project Homepage

Nirvana Lotus logo by Freepik

Prerequisites

Installing Dependencies with NPM

  1. From /app/frontend/
  2. npm install
  3. From /app/api/
  4. npm install

Updating .env vars

  1. Add new .env file to /app/api/
  2. Inside of /app/api/config/ add .env via dotenv package

Building the Frontend with Expo

  1. From the /app/frontend dir
  2. npm start

Deploy Locally with Docker Compose

  1. docker network create --subnet 172.23.0.0/16 dev_network
  2. docker-compose -f docker-compose.dev.yml --project-name final_iteration --env-file ./api/.env up --no-deps --build -d --remove-orphans mongo-database
  3. docker-compose -f docker-compose.dev.yml --project-name final_iteration --env-file ./api/.env up --no-deps --build --remove-orphans express-api

Deploy to Container Registry with Docker Compose

  1. Select Production docker compose file
  2. docker-compose -f docker-compose.prod.yml --project-name final_iteration --env-file ./api/.env up --no-deps --build --remove-orphans express-api
  3. Follow the steps from you cloud provider to push an image to a container registry

Running Tests with JEST

  1. Database must be started
  2. From /app/api/
  3. npm run test

Package Structure

└───app
    ├───.expo-shared
    ├───frontend
    │   ├───.expo
    │   ├───.expo-shared
    │   ├───assets
    │   └───src
    │       ├───axios
    │       ├───navigators
    │       ├───screens
    │       │   ├───challengesScreen
    │       │   │   └───components
    │       │   │       └───banners
    │       │   ├───formularyScreen
    │       │   ├───insightsScreen
    │       │   ├───knowledgeScreen
    │       │   ├───Profile
    │       │   │   └───components
    │       │   ├───searchScreen
    │       │   └───userScreen
    │       └───sharedComponent
    ├───api
    │   ├───certificates
    │   ├───config
    │   ├───controllers
    │   ├───middleware
    │   ├───models
    │   │   └───plugins
    │   ├───public
    │   ├───routes
    │   ├───services
    │   ├───tests
    │   │   ├───fixtures
    │   │   ├───integration
    │   │   └───utils
    │   │       └───models
    │   ├───utils
    │   └───validate
    └───database

Developers

Final Iteration - California State University, Sacramento - CS Senior Project Team

  1. Akasha Stallworth: Github - LinkedIn
  2. Daniel Olsen: Github - LinkedIn
  3. Dennis Worley Jr.: Github - LinkedIn
  4. Gustav Boyd: Github - LinkedIn
  5. Joshua Poe: Github - LinkedIn
  6. Manh Sy: Github - LinkedIn
  7. Sahira Rizvi: Github - LinkedIn
  8. Sharon Fitzpatrick: Github - LinkedIn

API

Forked from hagopj13/node-express-boilerplate

Known Issues

  1. Frontend cannot be built with expo in a emulated environment - Requires Native CLI

About

iphone app for UC Davis Health as part of Sac State 2021 Senior Project. Created with React Native, Nodejs, MongoDB, Docker, and JWT authenication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published