Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

delete/estofadora

Repository files navigation

Estofadora Manager

Build Status Coverage Status

Manage bills, income, expenses and clients.

This project was made for my grandfather's business (who does not have so much contact with tech), who is an upholsterer. So I tried to keep as simple as possible.

Feel free to contribute and if you have any quention, open an issue and we'll talk about it.

As the product was made for an brazilian, the whole system is in portuguese (but the code is in english).

Python version

  • Python 3.5

Installation

$ virtualenv folder
  • Activate the virtual enviroment:
$ cd folder
$ source bin/activate
  • Clone this repository for the folder.

  • Install the dependencies:

pip install -r requirements.txt

Usage example

  • Create an .env file on settings directory with SECRET_KEY:
SECRET_KEY=MY_SUPER_SECRET_KEY
  • Create and configure the database:
$ python manage.py makemigrations
$ python manage.py migrate
  • Create an admin user:
$ python manage.py createsuperuser
  • Runs the server:
$ python manage.py runserver
  • Access the site: http://127.0.0.1:8000/
  • Access the admin page: http://127.0.0.1:8000/login

Production setup

.env file example

Create an .env file on settings directory with these variables:

SECRET_KEY=ARANDOMSECRETKEY
#OPBEAT
ORGANIZATION_ID=JUSTIFYOUAREUSING
APP_ID=JUSTIFYOUAREUSING
SECRET_TOKEN=JUSTIFYOUAREUSING
#DATABASE
NAME=DATABASENAME
USER=DATABASEUSER
PASSWORD=DATABASEPASS
HOST=DATABASEHOST
PORT=DATABASEPORT
ALLOWED_HOSTS=

Development setup

The project is covered by unit tests, you can run them by doing:

$ python manage.py test

ScreenShots

Home Page

Home page

Clients Page

Clients page

Add client Page

Add client page

Items Page

Items page

Bills Page

Bills page

Images from an item

You can add some photos of the item to show how it was before and after the work, for example. If the image was marked (the checkbox), it will appear on the portfolio page on the website, automatically.

Item images

Financial reports: daily, monthly and annually

Daily report Month report Annual report

Messages Page

All messages sent form website contact form. Collapsed gray box are read messages.

Messages page

Meta

Fellipe Pinheiro – @pinheirofellipe – pinheiro.llip[at]gmail[dot]com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/delete/estofadora