RPI Ambulance's website—a work in progress
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.docker Bump PHP version for Docker to 7.2 Sep 7, 2018
PHPMailer Playing with PHP mailer to fix email forms Jan 20, 2018
css Fixes misaligned Delete Event button Feb 17, 2018
img Update with current O-board Sep 11, 2018
js
views Fixed display issue where "Other Agencies" section text couldn't be s… Sep 16, 2018
.add_event.php
.add_game.php reverted back to working code...not sure why it works Sep 16, 2017
.add_member.php Fix not being able to edit or add a member (#30) Sep 3, 2018
.admin_config.example.php
.bowerrc Removed references to public/ Dec 27, 2016
.contact_submit.php Moved public directory to root of repo, night crews working Dec 27, 2016
.cpr_submit.php Moved public directory to root of repo, night crews working Dec 27, 2016
.crews.php Add dob check (must be 18+) to crew eligibility to show signup button ( Sep 10, 2018
.db_config.example.php
.defaults.php Moved public directory to root of repo, night crews working Dec 27, 2016
.delete_event.php Proper use session_id and session_start (#45) Sep 7, 2018
.delete_game.php
.drop_event.php Proper use session_id and session_start (#45) Sep 7, 2018
.drop_event_other_member.php
.drop_game.php Proper use session_id and session_start (#45) Sep 7, 2018
.drop_game_other_member.php
.edit_event.php Fixed fuel log. Some other changes. Jun 18, 2017
.edit_member.php
.edit_self.php
.edit_self_pass.php Proper use session_id and session_start (#45) Sep 7, 2018
.email_submit.php
.expired_certs.php Wrapped up some further insecurities Nov 3, 2017
.form_config.example.php
.fuel.php
.fuel_log_entries.php Moved public directory to root of repo, night crews working Dec 27, 2016
.functions.php
.get_event_info.php
.get_game_info.php
.get_if_admin.php
.get_session_info.php Make master more representive of the current website Sep 2, 2018
.get_user_metadata.php
.gitattributes Force lf line endings on sh files so Docker doesn't break on Windows (#… Sep 5, 2018
.gitignore
.login.php
.logout.php
.modify_schedule.php Wrapped up some further insecurities Nov 3, 2017
.recaptchalib.php Moved public directory to root of repo, night crews working Dec 27, 2016
.signup_event.php
.signup_game.php
.stocking.php
README.md
bower.json
docker-compose.yml
error.php Make master more representive of the current website Sep 2, 2018
events_calendar.php Calendar now shows games and events. Upcoming events works now. May 22, 2017
front_events.php
games_calendar.php Calendar now shows games and events. Upcoming events works now. May 22, 2017
index.html
jwt_helper.php Moved public directory to root of repo, night crews working Dec 27, 2016
member_table.php
robots.txt Make master more representive of the current website Sep 2, 2018
slack-whoson.php fixes "/whoson yesterday" response Jan 30, 2018

README.md

Note: This repo was previously forked from wtg/ambulance, but was removed from the fork network by GitHub Support. The former repository is no longer developed, leaving this repo as the most up-to-date version.

Installation and Running the Site

This website is built in the MEAN stack (MongoDB, Express.js, Angular.js, and Node.js), and can be deployed using the following steps:

  1. Clone this git repository by running the following command in a Git-enabled terminal:

    • > git clone https://github.com/rpiambulance/website.git ambulance
  2. Navigate into the directory of the application:

    • > cd ambulance
  3. If NodeJS and Bower are both installed on your computer, skip this step.

    • Install NodeJS here.
    • Install Bower through Node Package Manager (npm) by running: npm install -g bower.
  4. Install all necessary dependencies by running the following commands:

    • > bower install
  5. Install mysql and then:

    • Run the sql located in the file .docker/mysql/schema.sql to create database (ambulanc_web) and necessary tables in the DB
    • [ADD INSTRUCTIONS FOR ADDING MEMBER, DEFAULT CREWS]
  6. Install PHP and a webserver (Apache, Nginx) to run it

Development

The site uses Docker to spin up three containers to ease in development which consists of:

  • MySQL container
  • PHP + Apache container
  • phpMyAdmin container

To use this, you will need to install docker and docker-compose. For Windows and MacOS, it's recommended to install the Docker Desktop which contains everything that you need. For a Linux distro, find your OS and follow the install directions for it on this page. You may need to additionally follow the instructions this page to install docker-compose.

Once that is done, you just need to run the following command anytime you want to work on the site:

docker-compose up

This starts all three containers, links them together, and makes them accessible on your localhost. The containers have the following access points on the host machine:

  • Site: http://localhost:8080
  • phpMyAdmin: http://localhost:8081
  • MySQL: localhost:33060 This will setup the necessary .{admin,db,form}_config.php files in your site directory. Additionally, when you first start the MySQL container, it will create a user with the following credentials that you can use to login:
  • Username: test
  • Password: test

Credits

This project was created for the RPI Ambulance organization by the Web Technologies Group.

Developers

Copyrights

  • Photos are copyrighted by David Sparkman and are used with permission from the author.