GithubHelp home page GithubHelp logo

crabbymonkey / sed-web-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scoutengineeringday/sed-web-application

0.0 2.0 0.0 25.59 MB

This program is in development and is to be used for the Mitre Scout Engineering Day as a Registration Web Service. This program is for the front end of the registration service and is written in HTML, JavaScript, PHP and CSS. Anyone who would like to make contributions please contact Ryan Dufrene at [email protected].

Python 22.97% JavaScript 44.65% CSS 3.64% PHP 0.28% HTML 28.46%

sed-web-app's Introduction

SED Web Registration Application Development

This program is in development and is to be used for the Mitre Scout Engineering Day as a Registration Web Service. The front end of the registration service and is written in HTML, JavaScript, Python and CSS; while to back end is done using MySQL. Anyone who would like to help with development please contact Ryan Dufrene at [email protected].

Installation

The following tools are needed:

Contributing

  1. Fork the project
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

First Time Setup

Initial Setup MySQL workbench Database (Hint: data will be used for later step)

  1. Create a local instance of MySQL connection (Hint:'USER', 'PASSWORD','HOST','PORT')
  2. Once connection is created, a schema would have to be generated.(Hint:'Schema name')

Setup Local

  1. Open Git Bash
  2. Install Django pip install Django==1.10.2
  • Hint: If it does not recognize pip you need to add the Python bin folder to Environment Variable PATH.
  • Hint: If you are within a company firewall you will have to use pip install --proxy <proxy> Django==1.10.2
  1. Install Django Form Tools pip install django-formtools
  2. Install Stripe pip install --index-url https://code.stripe.com --upgrade stripe
  3. Install MySQL_connector and MySQL_python (Hint: Windows can just run included files/ linux run pip install)
  4. Open location of source code cd /locationofcode/sed
  5. Open location cd SED/settings.py and navigate to database section and fill the data above into the corresponding location.
  6. Setup the Database python manage.py makemigrations
  7. Apply Database python manage.py migrate
  8. Return to MySQL workbench and run the current testscript.sql to update the database with the test dataset. Then run step 7-8 again.
  9. Run the server python manage.py runserver
  • Do not close the Git Bash window it is running the server.
  1. Go to http://localhost:8000/ in browser

Useful Django Commands

  • inital commands:
  • When database have been altered: python manage.py makemigrations
  • When database alter has occured and need update: python manage.py migrate
  • To run the machine on localhost port 8000: python manage.py runserver 0.0.0.0:8000
  • This will create you an admin level account: python manage.py createsuperuser (Hint: Put winpty before if you get an error)
  • commands afterwards:
  • When database have been altered: python manage.py makemigrations sedUI
  • When database alter has occured and need update: python manage.py migrate sedUI* To run the machine on localhost port 8000: python manage.py runserver 0.0.0.0:8000

URLs:

  • Local host urls:
  • Main Test Website url:

**Note: There might be some rendering issue when first running on the Mitre network. You might have to run as admin first beforehand.

Design

ScoutEngineeringDayWebDesign.png

Database Design Schema:

Relationship_Schema.png

To Do

  • Finish Navbar
  • Create Home page
  • Create Login page
  • Create Register page
  • Create Course List page
  • Create Scout List page
  • Create Single Scout page
  • Create Single Course page
  • Create PHP connection to the database
  • Create getScoutInfoFromDatabase()
  • Create getAllScoutsFromDatabase()
  • Create getCourseInfoFromDatabase()
  • Create getAllCoursesFromDatabase()
  • Create models to show about and home page data for admin modification
  • update the admin page to be able to view more data
  • Fix bugs created when switching to Django
  • Add MySQL database
  • Update Registration process
  • Scout detail page button functionalities
  • Integrate the Stripe Payment process

Credits

  • Sue Kim: Manager - Initial work
  • Ryan Dufrene: Front-End Developer - Initial work
  • Walter Hiranpat: AWS, Django Back-End Developer, Database Developer - Initial work
  • Edward Gedeon: Front-End Developer - Initial work

sed-web-app's People

Contributors

crabbymonkey avatar whiranpat avatar egedeon avatar

Watchers

James Cloos 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.