Git Product home page Git Product logo

maine-craft-breweries's Introduction

Maine Craft Breweries

Jonathan Cole
Spring 2017

This my implementation of the final project for SIE557 at the University of Maine.

Introduction

Structure

All client-facing pages are rendered from PHP by the server. The client-side pages use a lot of JS for the forms; in particular, I made heavy of use of Bootstrap.

The pages talk to the server through AJAX requests to a dedicated API on the server. This API is written in pure PHP for querying and altering the data in the database.

All client-facing pages may be found in /page/. All other PHP can be found in /php/; in particular, you can find the API in /php/api/.

When choosing what to edit or add or search by, various partial pages are loaded into the window. You may find these files in the /partials/ directory.

API

The benefit of the API is that you don't need my frontend to query or alter data. For example, try going to http://localhost:8888/mcb/php/api/search.php?type=name&term=beer to get all the breweries with "beer" in the name, as well as the beers that they serve. I thought this would keep things nice and compartmentalized.

Installation

This website is designed to run on a MAMP server. Put the root directory in your htdocs directory, and make sure you have a user called sie557 with a password of sie_557_password. You should change these should you wish to put this into production.

You'll want to import /sql/MCB.sql. This will create the database and populate it with my test data.

To get started, visit http://localhost:8888/mcb/page/index.php.

Attribution

This project shares a small amount of code from another project I am working on for SIE510. You can find that project here.

Walkthrough

IMAGE ALT TEXT

maine-craft-breweries's People

Contributors

colejd 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.