Skip to content

Colton-Zecca/website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

RPI Ambulance's website—a work in progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 39.9%
  • JavaScript 28.6%
  • HTML 22.9%
  • CSS 8.6%