Slice of Life
By Clark Reilly
Running a Local Instance
- Clone the repository.
- Install Yarn on your computer (See here for more deatils).
- Navigate to the location in which you cloned the repository (the immediate location of the readme, package, and other files).
- Open Command Prompt.
- Enter
\cd
into the Command Prompt and hit return. - Copy the repository's location (make sure it's in the format
C:\Users\...
). - Enter
cd [Paste repository location here, no brackets]
and hit return (make sure to include a space after thecd
!). - (Only necessary the first time) Enter
yarn install
and hit return. - Enter
yarn serve
and hit return. - Enter the given
localhost
url given into a browser.
Linking Slice of Life to your own database
- Set up your own Firebase Database.
- Within the Firebase console, navigate to the gear icon next to "Project Overview", and select "Project Settings".
- Navigate to the "Your apps" section, and select the app you wish to connect to Slice of Life.
- Under "Firebase SDK Snippet", select the "Config" option.
- Navigate to and open the
.env
within your root directory. - Change each of the variables in the
.env
file such that they match the respective information listed under the "Config" section for your own app. Make sure not to change the variable names themselves, even though they are listed slightly differently. - Within your Firebase database, start a collection called "posts".