To setup this project simply follow this guide. I highly recommend doing this on a Linux machine.
Clone the project and open it in your IDE(A).
git clone https://github.com/DeNic0la/vocabify.git && cd vocabify
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.
Make sure you have npm, firebase-tools and angular-cli installed.
Run the listed commands
firebase login
firebase projects:create
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.
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
Deploy the functions:
cd functions
firebase deploy --only functions
cd ..
Build the frontend
ng build
Deploy the frontend
firebase deploy --only hosting
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