Giter Club home page Giter Club logo

cascadestech.club-flask's Introduction

CTC-web-app

A web application for the Cascades Tech Club. Built using Flask.

To use this code you will need to set some things up first:

  • Create a folder where the code will live and pull it on down
  • If you don't have python installed, get dat
  • It's good practice to use a virtual environment but you don't have to
    • I use VirtualEnv, install it by running:
      • $ pip install virtualenv
    • If you want to go this route, you need to then create your virtual environment and give it a name for example if ENV is your desired virtual environment, run:
      • $ virtualenv ENV
      • Also, make sure your .gitignore file contains the correct name of your virtual environment, by default it ignores venv under the heading #virtual environment
    • Then turn your new virtual environment on by running:
      • $ source bin/activate
      • or on Windows: ENV\Scripts\activate
    • You should now see a (ENV) before your prompt
  • In the root of the project run:
    • $ pip install -r requirements.txt
  • You will now need to set some environment variables:
    • To give a user admin rights set the CTC_ADMIN variable:
    • In order for the emailer to work properly:
    • By default SQLite is used but if you want to use a different DB you will need to set the DB URI environment variables:
      • For development set DEV_DATABASE_URL
      • For testing set TEST_DATABASE_URL
      • For production set DATABASE_URL
      • I'm using MySQL with a URI variable set like this:
        • $ export DATABASE_URL=mysql://username:password@localhost/db_name
  • You're almost up and running, you will now have to deploy the database model to do that run:
    • $ python manage.py deploy
  • Your environment should be ready to go! To start the server run:
    • $ python manage.py runserver

If you want to build off this project I suggest reading Miguel Grinberg's book.

Reach out if you have questions!


(c) 2017 Justin Tappert

cascadestech.club-flask's People

Contributors

ctsstc avatar otis0620 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ctsstc krakiun

cascadestech.club-flask's Issues

Forcing LinkedIn URL

Not everyone has a linkedLn or github and it will not let user update profile without one. Actually if I leave the other fields blank it only prompts a warning to fill out the github and linkedln text areas.

Add to README.md dependencies and how to install

So far:

pip install flask-bootstrap
pip install flask-mail
pip install flask-moment
pip install flask-sqlalchemy
pip install flask-login
pip install flask-pagedown
pip install flask-script
pip install flask-migrate
pip install flask-wtf
pip install markdown
pip install bleach

Event Calendar

The calendar portion of events seems to carry your personal calendars items rather than the clubs.

Profile editing issue

@sharding1012 covered the linked in and github account issues. Unless users enter graduation date in as mm/dd/yyyy it returns an error also.

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.