Coder Social home page Coder Social logo

krakiun / cascadestech.club-flask Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osu-cascades/cascadestech.club-flask

0.0 2.0 0.0 21.3 MB

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

Home Page: https://ctc-website.herokuapp.com/

Python 10.95% CSS 2.71% JavaScript 6.08% HTML 80.13% Mako 0.13%

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

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.