GithubHelp home page GithubHelp logo

holdmybeers / kasir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icoldplayer/kasir

0.0 0.0 0.0 33.66 MB

Cashier Management & Inventory Management System

Home Page: https://kasir.herokuapp.com

License: MIT License

Python 49.10% HTML 47.51% JavaScript 3.39%

kasir's Introduction

Cashier System Management & Inventory Management Using Django.

Build Status
CircleCI

You can also see the live demo here. with user: admin & password: demoadmin (The demo can take a time to load)

Read more the flowchart and the pattern models here

Installation:

# Clone it
git clone https://github.com/iColdPlayer/kasir.git

cd kasir

# create your own Virtual Environment on you local machine
python -m venv env

# then activate it
source env/bin/activate

# Install all the dependencies
pip install -r requirements.txt

# export your SECRET_KEY
export SECRET_KEY='your_secret_key'

# Migrate 
./manage.py migrate

# you can also create an admin for yourself (default username is admin, pass: admin)
./manage.py createsuperuser

# Run it
./manage.py runserver

And go to your localhost:8000, you should see the login page there.
You can also register as user at localhost:8000/register.

Import & Export Data From Admin Page

You can also export and import your stock from the admin page itself. Go to /admin/data/stock, you should be able to see the example data over there.

Production

Please do not forget to collectstatic before you plan to use on production by running:
./manage.py collectstatic or your site won't be able to load the staticfiles.

To make sure your staticfiles works correctly, you can running locally on your local machine with debug set to False by typing this:
./manage.py runserver --insecure

If you plan to use on production, please do not forget to uncomment this line below in your settings when DEBUG = 0.

Check this option by running:
./manage.py check --deploy

SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = True
SECURE_HSTS_PRELOAD = True
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True
X_FRAME_OPTIONS = 'DENY'
CSRF_COOKIE_SECURE = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
CONN_MAX_AGE = 60

The languange currently support for Indonesian only, other language coming soon.

Thank's for visiting and don't forget to give a star, create an issue or pull request.


kasir's People

Contributors

icoldplayer avatar imgbotapp avatar dependabot[bot] 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.