No project description provided
Project description
DetaMVC
DetaMVC is a framework for rapidly developing web applications using:
Work in Progress
Please note that DetaMVC is a work in progress currently. Some planned updates include:
- Support for exotic data types when scaffolding
- Implement Deta Auth when available
- Generate with other front ends ? (may take significant restructuring)
Installation
pip install detamvc
Basics
If you are familiar with Ruby on Rails, the commands are very similar for creating an application.
detamvc new project
cd project
detamvc scaffold item name:str description:text price:float quantity:int available:bool
Before running your project, be sure to set your PROJECT_KEY for Deta. You can get this from your dashboard under 'settings'.
echo DETA_PROJECT_KEY="#######_#############" > .env
Or, save yourself the hassle and set your development project key using the command. Hint: Do this before creating a new project.
detamvc set-project-key #######_#################
NOTE: Deta Base is used as your database. I would strongly recommend creating a new Project called 'development' where you can play around with ideas while building. When you go to production, create a new project in Deta for this to be managed in.
Run a Server Manually
This assumes you have uvicorn installed. You can run with other servers as you wish - just set up like you would for a normal FastAPI application.
detamvc s
or
uvicorn main:app --reload
Deploy on Deta
Now you can deploy this on Deta! Before running the following, you will need to install the Deta CLI
deta new --project default
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file detaMVC-0.2.1.tar.gz
.
File metadata
- Download URL: detaMVC-0.2.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0134db0e2f8a905bd47bbde374ea7769152f98bdf6fd1ea8ff369a9a6187743d |
|
MD5 | 124247597da9efb1e7d3e47d1d354042 |
|
BLAKE2b-256 | 6409b6e6745767ab3b1f627882120d404f6673c31ee705a345262ea26aba4ad6 |
File details
Details for the file detaMVC-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: detaMVC-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd9954553349345e7dacfb51adc09d5a1a8ca6638ec5ca904cc93ecde4921fe |
|
MD5 | 301ca5032262ddde740775a220907b7f |
|
BLAKE2b-256 | bcaa128eec62567e067decb8d6e897c99689fd882d48b9c435647efdc990f53b |