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.3.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

detaMVC-0.3.2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: detaMVC-0.3.2.tar.gz
  • Upload date:
  • Size: 14.1 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.3.2.tar.gz
Algorithm Hash digest
SHA256 6d716025d641a4a4779727899c5b8e639ec5985ec00f4b86e6e0350fa56ad568
MD5 d127d657f11354d5cbf5b8f08a8c0ddf
BLAKE2b-256 25906f7c37dc4af10584dfdf6dd7a70007230d38b73e6df798f36ffe169153fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: detaMVC-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 21.7 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 075d53953d520b3367fb13ac34d0b5c50c1c3f0dfd6968c83d727598c2fd1754
MD5 18a1114ec513d5e3b7dbe56ae90db87a
BLAKE2b-256 8af0fcec27a9da0081f4d9d4825b91fdbc3e5aa8286fd377249d52232fd3f2f9

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