Skip to content

This repo contains the Mini-Project starter kit for the class of 2023

Notifications You must be signed in to change notification settings

COS-301/miniproject-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Project 2023

Requirements

The following items are required to run this project:

  • Node 16: Used for the app, api and cli (Tip: use NVM)
  • Java: used by the Firebase emulators (Make sure that JAVA_HOME is set. Tip: use JENV)
  • You need to create a firebase project (See: https://console.firebase.google.com - You will need to config for your firebase project in the .env files, .firestorerc)
  • Firebase CLI (See: https://firebase.google.com/docs/cli)

Get Started

  1. Fork the repo

Go to: https://github.com/COS-301/miniproject-2023/fork

  1. Clone your fork
git clone [email protected]:<ACCOUNT>/<PROJECT NAME>.git <PROJECT LOCAL NAME>
  1. Install dependencies
cd path/to/project
yarn
  1. Add Firebase configurations

See files:

  • .firebaserc
  • .env
  • .env.pod

and find and replace "<REPLACE_ME>"

  1. Run the stack:

Run these commands in separate terminals:

yarn start:api:dev
yarn start:emulators
yarn start:app:dev
  1. CLI:

If you want to run the cli for admin, scripts, migrations etc.

yarn build:cli:prod
GOOGLE_APPLICATION_CREDENTIALS=.keys/<REPLACE ME WITH SERVICE ACCOUNT KEY.json> FIRESTORE_EMULATOR_HOST=localhost:5003 node dist/apps/cli/main.js <REPLACE ME WITH COMMAND>

Emulators:

Once the emulators are up, please go to http://localhost:5001 to see the Emulator UI

Notes!!:

  • When creating your Firebase authentication, hosting, storage, functions. Make sure to use the same location throughout. (MAKE SURE TO SET "Default GCP resource location" in Project Settings in Firebase Console. If you do not do this, the app will not work)
  • The app is built to be a PWA. (See: So if you deploy it to prod, you can install the app on iOS by adding to home screen or using Android by installing through Chrome)

About

This repo contains the Mini-Project starter kit for the class of 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published