Giter Site home page Giter Site logo

askmetoo / debtor-administrator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaseralnajjar/debtor-administrator

0.0 1.0 0.0 761 KB

License: MIT License

Dockerfile 4.06% Python 46.93% HTML 1.85% CSS 0.51% Vue 17.37% JavaScript 28.88% Batchfile 0.40%

debtor-administrator's Introduction

Debtor Administration

A simple app manage (CRUD) debtors, their bank account data (IBAN) and invoices.

Existing Models and APIs

The models.txt file and the api.txt file contains all the models and the APIs that we have in the app, respectively.

Both of the models and the APIs are built upon the wireframe file

Setup

yarn install
virtualenv venv
call venv\Scripts\activate
pip install -r requirements_dev.txt
python manage.py migrate

Running Development Servers

python manage.py runserver

From another tab in the same directory:

yarn serve
  • Before running yarn serve, you will need to write .env file with GOOGLE_OAUTH_CLIENT_ID and run yarn build to bake in your Google client id for development.

The Vuejs application will be served from localhost:8080 and the Django Api and static files will be served from localhost:8000.

Docker Support

To run the app using Docker just add 127.0.0.1 debtor.admin into your hosts file (in system32/drivers/etc folder).

After that, add your .env file similar to sample.env file

Then you're ready to launch your development containers:

docker-compose -f docker-compose-dev.yml up -d

For staging containers:

docker-compose -f docker-compose.yml -f docker-compose-staging.yml up -d

You will find the app on http://debtor.admin

Deploy on Your Own Server

For full guide about deployment and management in your own server, please refer to this guide from Dorm Portal project (which has very similar setup to this one).

Deploy on Heroku

You can use the "one-click deploy" button below to try it out on Heroku, but you would still to do the following:

  1. Add admin user

Simply by running these commands, you will get an admin account with "admin" password.

DONT FORGET TO CHANGE PASSWORD LATER

heroku git-remote -a YOUR_APP_NAME
heroku run python manage.py shell
from django.contrib.auth.models import User
User.objects.create_superuser('admin', '[email protected]', 'admin')
  1. Adding Social App

You need to add your Google OAuth credentials to the app through the Django admin.

  1. ENJOY!
Heroku One Click Deploy

Deploy

debtor-administrator's People

Contributors

gtalarico avatar alhakem avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.