Demo project that implements Facebook Auth with Nuxt and Django
First, make sure you have created an app on Facebook
Have your app_id
and app_secret
handy for the next steps.
Install Yarn if you haven't already.
- Navigate to
frontend/
- Run
yarn install
to install all dependencies - Rename
.template.env
to.env
and update it with yourapp_id
- Start the server with
yarn dev
You'll find your app available at localhost:3000. You won't be able to log in yet, though.
This step assumes you're using Python 3.x
- Navigate to
backend/
- Run
pip install -r requirements.txt
to install all dependencies - Run
python manage.py migrate
to create the database - Create a superuser with
python manage.py createsuperuser
- Start your server with
python manage.py runserver_plus
- Login using your admin credentials localhost:8000/admin
- Click on Social applications and create a new Facebook application with your
app_id
andapp_secret
Done! Now you may go back to localhost:3000 and log in.