-
Login and Sign up - Hosted on Firebase
-
Based on Python-Flask
pip install -r requirements.txt
- Go to Firebase
- Login/Register your account
- Click on add project
- Give project name
- Optional: select google analytics
- Create project
- Under "Get started by adding Firebase to your app", click on web app
- Name the web app and copy the "apiKey", "authDomain", "databaseURL", "storageBucket" from the code given there
- Go to login.py and app.py, and add the values you copied above
- Go to console, click on Authentication (On the left sidebar), click on sign-in method, and enable email/password sign in
-
heroku login
-
heroku create flashcards-server-api
-
heroku create --buildpack https://github.com/heroku/heroku-buildpack-python.git
-
heroku ps:scale web=1
-
git remote add heroku https://git.heroku.com/flashcards-server-api.git
-
git subtree push --prefix backend heroku local_branch:main