/volunteer-system

A volunteer system for authoring and publishing Events, Jobs, and Shifts.

Primary LanguageSvelte

Volunteer System

A volunteer system for authoring and publishing Events, Jobs, and Shifts.

Volunteer System Admin Interface

Stack

Setup

Required Dependancies

  • nodejs lte
  • java

(Optional) Install Dependancies with asdf

asdf is a tool version manager used to install versions of nodejs and java required by this application.

  1. Follow instructions on asdf's getting started

  2. Make sure asdf plugins are installed for required libraries

asdf plugin add nodejs
asdf plugin add java
  1. Run the asdf install instruction from the root directory of this project
asdf install

Install Node dependencies

npm install

Install the Local Emulator Suite

Before installing the Emulator Suite you will need:

  • Node.js version 8.0 or higher.
  • Java JDK version 11 or higher.

To install the Emulator Suite:

  1. Install the Firebase CLI. If you don't already have the Firebase CLI installed, install it now. You will need CLI version 8.14.0 or higher to use the Emulator Suite. You can check which version you have installed using the following command:
firebase --version

or

npm install -g firebase-tools
firebase login
  1. If you haven't already done so, initialize the current working directory as a Firebase project, following the onscreen prompts and select Emulators: Set up local emulators for Firebase products:
firebase init
  1. Select Emulators and Firestore

Set Environment Variables

  1. Copy the .env-template to an new .env file.
  2. Look up current environment variables from the Netlify volunteer-system dashboard.

Running

  1. Start up the firebase emulator for authentication and firestore:
npm run emulators

1a. (Optional) Start up firebase emulator and save any data to seed on next startup.

npm run emulators:seed
  1. Start up the Svelte Dev server
npm run dev

Default hosting setup for Netlify.