Skip to main content

No project description provided

Project description

DetaMVC

Documentation: https://detamvc.deta.dev
Source Code: https://github.com/pyn-sol/detaMVC

DetaMVC is a framework for rapidly developing and deploying 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

Installation

pip install detamvc

Other Requirements:

  • A Deta Account. If you do not have one, go to Deta and click 'Join Deta'
  • The Deta CLI

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 Deta 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. We 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.4.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

detamvc-0.4.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file detamvc-0.4.0.tar.gz.

File metadata

  • Download URL: detamvc-0.4.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Windows/10

File hashes

Hashes for detamvc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4c8d9c34c6ff50b10395a5cbcdbebc005d4f45b5f15889cc9aece9fafe8f432b
MD5 f099332a707aa9792688d10dfbd44a88
BLAKE2b-256 f32025f1253f090f5a02246fa0f8a3fb6a83cccb7f59bbbf51e124927149ded4

See more details on using hashes here.

File details

Details for the file detamvc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: detamvc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Windows/10

File hashes

Hashes for detamvc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccb894bbf94964d1c65faf19ebfc8f01398f42dcbc1f5969406b31f7f618bf4
MD5 dd614f99dfdffec41604ffc9bc143465
BLAKE2b-256 408e05ca9e9e9fe00a7010a437213c83ede6b248b7d5a2d7353d5fe04bf39daa

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