Skip to main content

Create beautiful admin dashboards in Masonite Framework

Project description

Collapsar

Masonite Collapsar GitHub Workflow Status (branch) PyPI Python Version GitHub release (latest by date including pre-releases) License Code style: black

Introduction

Collapsar is a package that will let you save time creating a dashboard for your app. You won't need to worry anymore about creating CRUD's.

Features

  • Add multiple resources to your dashboard using Masonite Models
  • Use fields: TextField, IdField, PasswordField, SelectField and more
  • Add basic validations: max, min, required, email, etc.

Official Masonite Documentation

New to Masonite ? Please first read the Official Documentation. Masonite strives to have extremely comprehensive documentation 😃. It would be wise to go through the tutorials there. If you find any discrepencies or anything that doesn't make sense, be sure to comment directly on the documentation to start a discussion!

Have questions or want to talk? Be sure to join the Masonite Discord Community!

Installation

pip install masonite-collapsar

Configuration

Add CollapsarProvider to your project in config/providers.py:

# config/providers.py
# ...
from collapsar import CollapsarProvider

# ...
PROVIDERS = [
    # ...
    # Third Party Providers
    CollapsarProvider,
    # ...
]

Develop instructions

To test the project locally, you just need to clone the repository and configure a basic .env just like any masonite project.

git clone https://github.com/eaguad1337/masonite-collapsar

Install dependencies

python -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt

Create a simple .env

cp .env-example .env

Run migrations

python craft migrate

Build assets

npm install
npx vite build 

Run the app

python craft serve

Visit http://localhost:8000/collapsar and you should see the dashboard and the User resource.

Usage

This package has the UserResource class as example, you could edit the configuration editing the file /tests/integrations/app/collapsar/resources/UserResource.py

Making changes

If you want to make changes on the front assets, you could do it by modifying the React App on /src/collapsar/assets/js

Then, compile the assets using this script

npx vite build 

Contributing

Please read the Contributing Documentation here.

Maintainers

License

Collapsar is open-sourced software licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collapsar-0.0.2.tar.gz (430.6 kB view hashes)

Uploaded Source

Built Distribution

collapsar-0.0.2-py3-none-any.whl (439.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page