The online "Cadet Store" that my classmates asked me to build
 
 
 
 
 
Go to file
John Hammond 0d925a0ae7 Updated a lot 2017-01-02 00:59:10 -05:00
dev Adding the latest rendition of the code... 2016-09-05 20:09:45 -04:00
static Updated a lot 2017-01-02 00:59:10 -05:00
templates Updated a lot 2017-01-02 00:59:10 -05:00
uploads Updated a lot 2017-01-02 00:59:10 -05:00
README.md Added templates, javascript (jquery), and a cleaning script 2016-08-17 11:15:05 -04:00
badwords.txt Adding the latest rendition of the code... 2016-09-05 20:09:45 -04:00
certificate.crt Updated a lot 2017-01-02 00:59:10 -05:00
clean.sh Added templates, javascript (jquery), and a cleaning script 2016-08-17 11:15:05 -04:00
database.db Updated a lot 2017-01-02 00:59:10 -05:00
email_test.py Adding the latest rendition of the code... 2016-09-05 20:09:45 -04:00
here.db Updated a lot 2017-01-02 00:59:10 -05:00
install_dependencies.sh Updated a lot 2017-01-02 00:59:10 -05:00
privateKey.key Updated a lot 2017-01-02 00:59:10 -05:00
schema.sql Adding the latest rendition of the code... 2016-09-05 20:09:45 -04:00
server.py Updated a lot 2017-01-02 00:59:10 -05:00
server_base.py Updated a lot 2017-01-02 00:59:10 -05:00
setup.sh Updated a lot 2017-01-02 00:59:10 -05:00

README.md

BearShop

John Hammond | August 17th, 2016


This repo is dedicated to housing all materials and code for an idea that I have titled "BearShop." My classmates have came to me with an idea to create a buy/trade/sell store for the USCGA, so this is all the work put in for my rendition of it.

I plan to do this project in Python with Flask.

File & Directory Information

  • ctf_skeleton/

    This directory holds some code from a recent CTF platform I tried to build on my own. I am using elements from it, so I just snagged to code to be able to cherry-pick off of it and change what I need to get this project rolling. Do not consider it a part of this project; it is not. It is just included as a convenience for me while the BearShop project is still be developed.

  • static/

    This folder is required by Flask and it is where all "static" files live, like things for CSS or images or fonts.

  • templates/

    This is another folder required by Flask, and it stores all of the HTML code that builds the markup of the website.

  • schema.sql

    This is the SQL schema file that is used to create the database for the webpage. It should create and define tables for things like users, the products on sale, and anything else that may be deemed necessary.

  • setup.sh

    This is the bash script that I planned on using to initially create the server. It sets up the database, creates private keys to be used, and modifies a "base" rendition of the server Python script to add all of the configuration variables that can be set in the setup.sh script.

  • server_base.py

    This is actual source code of the web application. ! Remember, it is not what you will actually run to deploy the server; the setup.sh script will take it and configure it, to create a new, functional server.py which is what you will run when you deploy.

  • clean.sh

    This is just a one-liner script that just gets rid of the created server.py and the private keys created for use with [HTTPS].