Skip to content

It's a polls app based on Django and React with Social authentication.

Notifications You must be signed in to change notification settings

mominur774/django-react-polls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django and React polls app with Social authentication.

Getting Started

Project setup and run (Backend)


Setup .env

DEBUG=
SECRET_KEY=
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_ID=

Install dependency

pip install -r requirements.txt

Migrate database and create superuser

python manage.py migrate
python manage.py createsuperuser

Run the server

python manage.py runserver

You will get all the api endpoints by hitting this url : http://127.0.0.1:8000/api-docs/

Project setup and run (Frontend)


Setup .env.local

NEXT_PUBLIC_APP_API_URL=http://127.0.0.1:8000/
NEXT_PUBLIC_GOOGLE_CLIENT_ID=

Install dependency

npm i
# or
yarn

Run the server

npm run dev 
# or
yarn run dev

Screenshots

alt text alt text