Coder Social home page Coder Social logo

flask-crud-t's Introduction

flask-crud

Pre-requisites

  1. Install Python on your Laptop / Desktop
  2. Make sure pip is properly configured. To verify open command prompt or powershell window or terminal and python -V and pip -V
  3. Read about virtualenv you can create a local env in directory
  4. Avoid Spaces in the directory aka folder names e.g. instead of my flask app create a folder my-flask-app or my_flask_app
  5. Install flask and pytest
  6. Check the requirements.txt file for the versions. In python, requirements.txt is very important file and the name should be eact same that is requirements.txt , no shortcuts like reqs.txt or myrequirement.txt or somethingelse.txt

Instructions for running the flask application

open terminal

clone the git repository using below command

git clone https://github.com/rcoem-devops/flask-crud.git

the cd to the flask-crud directory

Run below command to create a Table in Database

python create_table.py

run below command to start the Flask App

python app.py

It will run flask app on port 5000 on localhost or 127.0.0.1

Open browser and hit http://127.0.0.1:5000/

https://github.com/rcoem-devops/flask-crud

<base_url>/oauth2/auth?scope=orders%20hold-ings&state=%7B%22param%22:%22value%22%7D&redi-rect_uri=http://127.0.0.1&response_type=code&client_id=

https://alpha.sasonline.in/oauth2/auth?scope=orders%20hold-ings&state=%7B%22param%22:%22value%22%7D&redi-rect_uri=http://127.0.0.1&response_type=code&client_id=RR369

docker pull python:3.8-alpine

docker login -u rahulmr

docker run -it -p 5000:5000 -d rahulmr/rknecapp:v1

docker stop

docker rm

pip freeze > requirements.txt

Check files in docker container docker exec -it

flask-crud-t's People

Contributors

rahulmr avatar rahulrnl avatar

Forkers

devops-org-lab

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.