Giter VIP home page Giter VIP logo

cake-shop-py-api's Introduction

cake-shop-py-api

Cake Shop API Services in Python Flask

Install Python 3

Instal PIP3

pip / pip3 is a de facto standard package-management system used to install and manage software packages written in Python.

Install PIP Env

pip3 install pipenv

Create Project Config File.

pipenv shell

Install Flash Project.

pipenv install flask flask-sqlalchemy flask-marshmallow marshmallow-sqlalchemy
pipenv install requests --upgrade

Error: Lang Error

Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.

Edit RC File and Update Language

vi ~/.zshrc
or
vi ~/.bashrc

Error:

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

Error: Python Error

Warning: Python 3.9 was not found on your system…
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path/to/python
pipenv --python 3.8.2

Run Application

python3 app.py

Create DB

(cake-shop-py-api) ➜  cake-shop-py-api git:(main) ✗ python3
Python 3.8.2 (default, Aug 25 2020, 09:23:57)
[Clang 12.0.0 (clang-1200.0.32.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from app import db
>>> db.create_all()

Error:

TypeError: __init__() got an unexpected keyword argument 'strict'

Reference: https://www.youtube.com/watch?v=PTZiDnuC86g

cake-shop-py-api's People

Contributors

ramsunvtech avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.