Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (46 loc) · 1.56 KB

Readme.md

File metadata and controls

72 lines (46 loc) · 1.56 KB

Setup

To setup this project simply follow this guide. I highly recommend doing this on a Linux machine.

Step 1

Clone the project and open it in your IDE(A).

git clone https://github.com/DeNic0la/vocabify.git && cd vocabify

Step 2

There is a script for the setup if you are using Linux. For the setup with Linux read the script tutorial. Else follow the steps listed below.

Step 2.1

Make sure you have npm, firebase-tools and angular-cli installed.

Step 2.2

Run the listed commands

firebase login
firebase projects:create

Step 3

Go to the firebase console and select the project you just created. Add a new application to the project. Take a look at the environment.prod.ts file and copy the values from the Firebase config into said file. Firebase config

Step 4

Make yourself an Open-Ai-Api-Key and add it as a Firebase secret. (Make sure you are using the right project Firebase use {your project}).

your_key=12345
firebase functions:secrets:set OPENAI_API_KEY $your_key

Step 5

Deploy the functions:

cd functions
firebase deploy --only functions
cd ..

Step 6

Build the frontend

ng build

Deploy the frontend

firebase deploy --only hosting

Step 7

Congratulations your app is deployed, go to firebase to check the url you deployed the app to. https://console.firebase.google.com/project/[YOUR_PROJECT]/hosting/sites