Giter Site home page Giter Site logo

matijamatija / open_insure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daxaxelrod/open_insure

0.0 0.0 0.0 4.09 MB

Open source insurance policy management software

Shell 0.02% JavaScript 13.44% Python 29.53% TypeScript 46.01% CSS 1.73% HTML 9.19% Dockerfile 0.08%

open_insure's Introduction

Open insure

Take control of your insurance

  • setup group insurance for you and your friends
  • Browse and pick group insurance policies that are right for you
  • 100% of unused premiums get returned to you at the end of the period
  • Manage claims against your policies with a direct democracy, opt for "jury duty" or elect representatives to manage on your behalf

Apps overview

Pods

  • User profile
  • Groups of users
  • Permissions/Roles
  • User authentication

Policies

  • Coverage types (e.g. property, renters, etc.)
  • Policy types (Capped Pool, Perpetual Pool, Capital Call)
  • Claims
    • Settlement type (Commitee or direct democracy)
    • Claim evidence (Pictures, statements)
    • Claim Approvals (Votes from policy holders)

Development

Environment Setup

VS Code

VS code settings for formatting code with prettier are set for this package, if you choose to use another code editor please run prettier before committing with Front End: npx prettier --write src/**/*.tsx

  1. Install VS code
  2. Use VS code

API Setup

  1. Copy .env.example and rename the copy to .env
  2. Run the following commands:
  pipenv install

  pipenv shell

  pipenv run python manage.py migrate

  pipenv run python manage.py createsuperuser

  pipenv run python manage.py runserver

Note: database is all sqlite, proper db settings setup to come

For development notes see: roadmap.md

Frontend Setup

In frontend directory: Copy .env.example and rename the copy to .env

In a separate terminal window, run the frontend

  cd frontend

  npm install

  npm run start

setup help

If you're running on a mac you might need to set up postgres for psycopg2, pythons postgresql driver:

brew install libpq --build-from-source
brew install openssl

export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib -L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/libpq/include"

pipenv install

Docker

Build command docker build -t insure .

Code Review Process

  1. Create and push a new branch
  2. Create new Pull Request in Github

Deployment

Backend python manage.py migrate

gunicorn open_insure.wsgi:application --access-logfile=- --bind 0.0.0.0:8000 --capture-output --enable-stdio-inheritance

Frontend npm run build (I often build on a seperate machine that has more RAM than the typical prod server and copy the build folder over) serve -s build

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.