Skip to content
/ rindus Public

Django application to manage (CRUD) users and their bank account data (IBAN).

Notifications You must be signed in to change notification settings

eduzen/rindus

Repository files navigation

rindus Build Status codecov

Django application to manage (CRUD) users and their bank account data (IBAN).

This project runs with docker (you can use traditional virtualenv but it's prepared out of the box for docker). We choose Django 2.0 and Python 3.6 The database is a postgresql. We use the django templates for this exercise, because it easy to manage all the app only with python. However we prefer django-rest-framework and a javascript framework for a production escenario.

Requirements:

You need to install docker and docker-compose to run it. We use two images: python 3.6 and postgresql. We have a Makefile with some rules to manage the project. Some of them are: start, stop, dockershell, shell_plus, psql, migrations.

For example:

  • To run tests and Flake8 inside of a container. Just run:
make test

Configuration:

  • To start the project just run:
make start

This command will pull docker images and run them inside of a container.

  • Then you need to setup the database and create a superuser. We have two targets:
make migrate
make superuser
  • For google accounts, you need to configure the "Google login".
  1. Go to localhost:8000/admin and inside of it, go to Sites app:

Image

and edit example.com register with locahost:8000 like this img:

Image

You can choose a diffent domain name if you want to deploy it in VM.

  1. Go to https://console.developers.google.com/ and create new app and oauth2 credentials. You can follow this instructions

  2. Go back to localhost:8000/admin and inside of it, go to Social Accounts/ Social application and fill it with the keys provided by google. Image

  • Now, You can use the app going to http://localhost:8000/: Image

  • See list of users, edit and delete them http://localhost:8000/: Image

  • Create users http://localhost:8000/user/add: Image

  • Edit users http://localhost:8000/user/<:id>:

About

Django application to manage (CRUD) users and their bank account data (IBAN).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published