https://github.com/eduzen/rindus
Django application to manage (CRUD) users and their bank account data (IBAN).
https://github.com/eduzen/rindus
django docker docker-compose python3
Last synced: 2 months ago
JSON representation
Django application to manage (CRUD) users and their bank account data (IBAN).
- Host: GitHub
- URL: https://github.com/eduzen/rindus
- Owner: eduzen
- Created: 2018-09-01T22:30:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T00:09:34.000Z (over 5 years ago)
- Last Synced: 2025-10-08T20:35:30.263Z (9 months ago)
- Topics: django, docker, docker-compose, python3
- Language: Python
- Size: 429 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rindus [](https://travis-ci.org/eduzen/rindus) [](https://codecov.io/gh/eduzen/rindus)
## 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:
```bash
make test
```
### Configuration:
* To start the project just run:
```bash
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:
```bash
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:

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

You can choose a diffent domain name if you want to deploy it in VM.
2) Go to https://console.developers.google.com/ and create new app and oauth2 credentials.
You can follow [this instructions](https://ctrlq.org/code/20353-create-application-google-apis-oauth2)
3) 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.

* Now, You can use the app going to `http://localhost:8000/`:

* See list of users, edit and delete them `http://localhost:8000/`:

* Create users `http://localhost:8000/user/add`:

* Edit users `http://localhost:8000/user/<:id>`: