Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aleosin/blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blank to start new web application of most kind.

Uses Django framework to serve following:

  • Sign-in/Sign-up features.
  • Auto-generated admin interface on top of ORM.

Uses Django REST framework for:

  • Auto-generated REST API on top of ORM.

Uses django-rest-auth and django-allauth to provide REST endpoints for Sign-in/Sign up features.

Uses following to build custom user-facing application:

Uses Docker to ease development and production setup.

Uses Nginx as a proxy and assets server.

Uses MySQL as a RDBMS. Might be changed to an alternative RDBMS later thanks to Django ORM.

How to setup and run

  • Setup docker on Linux/Mac machine. Haven't checked on Windows, you are kindly welcome to try.
  • Download source code from this repo.
  • Run command docker-compose up -d --build to build images and up containers.
  • Run command docker-compose exec backend python manage.py migrate to apply database migrations.
  • Site should be accessible on http://localhost where http://localhost/admin application can be found.
  • Run command docker-compose exec backend python manage.py createsuperuser to create admin user if needed.
  • Also, you can look at available API endpoints via http://localhost/api/.

    Note that few authentication related API's are not listed there due to specifics of Browsable API application and 'django-rest-auth' package implementation.

How to develop

  • Run command docker-compose exec frontend yarn start to have http://localhost:3000 for development of SPA application with live reload feature.
  • Python application also uses live reload, no dedicated processes and ports needed.

Supported features

  • You can sign up (no confirmation emails for the moment)
  • You can sign in either with previously signed up account or superuser account created from createsuperuser (see command above)
  • You can sign out then
  • You can change First and Last name in a Profile (email and username are not available now)
  • You can also change an Avatar image there

To be continued.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published