Coder Social home page Coder Social logo

kael89 / record-store Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.15 MB

A project website, replicating the functionality of a record store library

Home Page: https://record-store.herokuapp.com

License: GNU General Public License v3.0

PHP 80.94% CSS 2.76% JavaScript 15.91% Shell 0.39%

record-store's Introduction

Record Store

Live website: https://record-store.herokuapp.com

This project is a web site replicating the functionality of a record store library. Users can add, update and delete information about records and artists. The code is written in HTML5/CSS3/JavaScript/PHP.

alt text

Getting Started

The code for the project is built for live deployment in Heroku, but can also be used in a local XAMPP environment. One can change between the two project modes by simply changing the CODE_ENV constant to "heroku" or "local" respectively. This constant is set in the first lines of lib/library.php.

Prerequisites

Heroku

For live deployment as is, you must have a Heroku account.

You will also need a MySQL/MariaDB database to store your data, since the project uses the MySQLi extension for PHP. The live version of this project uses ClearDB database, integrated for Heroku.

Finally, since Heroku stores file assets such as user uploaded images only temporarily, you will need to have a file storage service. Amazon's AWS S3 was used for the live version of the project.

Local

The code for the local version of the project was built to work with XAMPP for Ubuntu Linux, and can serve as a basis for the local environment of your choice.

Installing

Heroku

Local

You will need to specify your database credentials to connect with your MySQL/MariaDB database. In order to achieve this, you can creating a configuration file, and then specify its filepath in the CONFIG_FILE constant defined in the start of lib/library.php.

Configuration file template:

[database]
user = (your username)
pass = (your password)
database = "record_store"

Optionally, you can also run restore.sh under scripts folder to populate the site with a few records/artists and their respective photos. Note: in order for the script to run succesfully, you must run it from inside its directory.

Built With

Authors

Kostas Karvounis - kael89

License

The code for this project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

Copyrights of record & band photos belong to their respective owners, and are used for educational reasons

record-store's People

Contributors

kael89 avatar

Watchers

 avatar

record-store's Issues

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.