A distributed social network
First, install the node dependencies
npm i
Second, install the python dependencies
cd server/
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
Lastly, create a .env
file. You can make a copy of the example file in the root directory.
cp .env.example .env
First create an empty database in /server
named app.db
with:
touch server/app.db
Use the same DATABASE_URL
environment variable found in .env.example
Recommended that you run the following commands on two different terminals so you can see that output for each command.
npm run dev
cd server/
source venv/bin/activate
flask run
cd server/
DATABASE_URL=sqlite:///test.db flask db upgrade
DATABASE_URL=sqlite:///test.db pytest tests.py
- https://firebase.google.com/docs/reference/js/v8/firebase.auth.GithubAuthProvider
- https://firebase.google.com/docs/auth/web/github-auth
- MUI Official Documentation. (n.d.). React drawer component. MUI. Retrieved March 3, 2022, from https://mui.com/components/drawers/#responsive-drawer
- cclloyd. (2018, April 25). Both right and left aligned icons in appbar with material-ui next. Stack Overflow. Retrieved March 3, 2022, from https://stackoverflow.com/questions/50012686/both-right-and-left-aligned-icons-in-appbar-with-material-ui-next. Answered By sanky2020(2022, February 22).
- Flowbite Documentation. (n.d.). Tailwind CSS Navbar. Flowbite. Retrieved March 3, 2022, from https://flowbite.com/docs/components/navbar/