Giter Site home page Giter Site logo

timvoet / web-flask Goto Github PK

View Code? Open in Web Editor NEW

This project forked from startr/web-flask

0.0 0.0 0.0 2.07 MB

A python web application template

License: GNU Affero General Public License v3.0

Shell 1.13% JavaScript 9.13% Python 14.10% CSS 60.95% HTML 14.24% Dockerfile 0.46%

web-flask's Introduction

alt text

Your Startr Web App

v0.2.0

WEB-Flask: less than 256 Lines of Python Goodness ๐Ÿš€

With Startr/WEB-Flast you can turn your ideas into a solid Minimal Viable Product in less than a weekend.

With a little Python code you can tweak our micro framework to do anything.

A simple yet powerful web application built with Flask and sprinkled with love...

๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ Please fork and leave a โญ star if you find this repo useful. Thank you! ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ

Introduction

Welcome to WEB-Flask, a fantastic web application that will elevate your development experience. This project, powered by Flask, offers an array of features to make your web development journey smooth and delightful.

Getting Started

To begin, make sure you have Python installed on your machine. Clone this repository and navigate to the project directory in your terminal. Then, follow these steps:

  1. Install the required dependencies by running pip install -r requirements.txt.
  2. Run the app locally using python app.py. The application will be accessible at http://localhost:8000 during development.

License

We license our projects under the AGPL-3.0 license. This license allows you to use, modify, and distribute this work, as long as you give us credit and share any changes you make under the same license. Share your changes by opening a pull request.

WEB-Flask Includes ๐Ÿ› ๏ธ

Here's what you'll find in this awesome project:

  • โœจ Quick Site with super smooth page transitions
  • ๐Ÿ” User authentication
  • ๐Ÿ‘ฅ Members only page logic
  • ๐ŸŽฏ Pro members only page logic
  • ๐Ÿ“ Contact form
  • ๐Ÿ“‚ File upload
  • ๐Ÿ’ต Billing
    • ๐Ÿ’ณ Stripe integration
    • ๐Ÿ”„ Subscriptions
  • ๐Ÿ“Š User dashboard
  • ๐Ÿ‘ฉโ€๐Ÿ’ผ User roles
  • ๐Ÿ”‘ Login
  • ๐Ÿ”’ Logout
  • ๐Ÿ“ User registration

More details

To ensure you have a seamless experience using WEB-Flask, we've prepared a more detailed description below:

  1. Installation: First, follow the "Getting Started" section above to set up the environment and run the app locally.
  2. Page Transitions: Explore the super smooth page transitions and enjoy a seamless user experience.
  3. Stripe Integration: Learn how to integrate Stripe for payment processing with just a few simple steps.
  4. User Authentication: Implement user authentication to secure your app's content.
  5. Members Only Logic: Control access to certain pages and make them exclusive to members only.
  6. Pro Members Logic: Elevate the experience for pro members with special access and content.
  7. Contact Form: Set up a contact form to connect with your users and receive valuable feedback.
  8. File Upload: Allow users to upload files effortlessly with this feature.
  9. Billing and Subscriptions: Manage billing and subscriptions smoothly for your users.
  10. User Dashboard: Create a personalized dashboard for users to monitor their activities and settings.
  11. User Roles: Define different user roles for varying levels of access and control.
  12. Login and Logout: Enable users to log in and out securely.
  13. User Registration: Implement user registration to create accounts for your app.

Get Started Now!

You are all set to embark on an exciting journey with WEB-Flask. Get ready to build amazing web applications with just 256 lines of Python magic. Happy coding! ๐ŸŽ‰๐Ÿ

Installation

Note: It's a great idea to use a tool like autoenv to manage spinning up your app's env while doing development.

curl -#fLo- 'https://raw.githubusercontent.com/hyperupcall/autoenv/master/scripts/install.sh' | sh
pip install -r requirements.txt

echo export STRIPE_SECRET_KEY="{{ your_stripe_secret_key }}" >> .env
echo export STRIPE_PUBLISHABLE_KEY="{{ your_stripe_publishable_key }}" >> .env
echo export FLASK_SECRET_KEY="{{ your_flask_secret_key }}" >> .env

# Sets a default price for the Pro plan
# Currently, this is a one-time payment

echo export PRO_PRICE="{{ your_pro_price }}" >> .env

# Sets a default price for the Pro plan
# Currently, this is a one-time payment

echo echo "Keys set" >> .env

echo pipenv shell >> .env

Usage

python app.py

Browse to http://localhost:8000 and enjoy!

While in development, the user database is stored in /tmp/users.db. This facilitates easy testing and development. In production, you'll want to change this to a more permanent location.

Deployment

Use Docker to deploy this application. The included Dockerfile will build an image with the application and all dependencies installed.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

web-flask's People

Contributors

opencoca 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.