Skip to main content

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


Download files

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

Source Distribution

detaMVC-0.2.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

detaMVC-0.2.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file detaMVC-0.2.2.tar.gz.

File metadata

  • Download URL: detaMVC-0.2.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10

File hashes

Hashes for detaMVC-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5f8fbfab81b222481871ad834ad56d91fd4db85b2590cd67322d4c3c5383923e
MD5 69093670fe8be6ed24556b01df7dc1f2
BLAKE2b-256 23f2c8b0c481cd1a963ba07d7267e9064c56db113760a9c9ed73390ab3cbd7c2

See more details on using hashes here.

File details

Details for the file detaMVC-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: detaMVC-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10

File hashes

Hashes for detaMVC-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f263a7ec666903052089d538f140a1cec29eb39b74a322e12cab172ac4282b2
MD5 5d0cf6296e3225b0e163e8334023e8cd
BLAKE2b-256 a2076205442eccb26db28ff5768c118284990240875dd73c93ce119cf0f96887

See more details on using hashes here.

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