Giter Club home page Giter Club logo

p2-databases's Introduction

P2 โ€“ Front-end Design & Implementation

What's this nonsense?

Please don't call it nonsense it's very useful. So this NONSENSE practical is my implementation of a website which streams audiobooks to its customers. Basically a poor man's Audible. However, this is no mere website, oh no. This is Bookstream.co.uk they store their customer data on my MySQL server hosted by St Andrews and I have to perform queries on the data and serve the appropriate responses to the user. Pretty standard stuff.

Bruh, it doesn't even work!

Well... yeah I know. That's because when I deployed the app on Heroku, St Andrews won't let me connect to the database necessary for some parts of the website. From my "testing" it seems that you should avoid Popular Audiobooks and All Audiobooks. You can look at the Log In and Sign Up screens if you want to (they're incredibly boring so I'd advise you against it) but if you complete and send the form, the site will crash on you. So don't do that. It's a shame, the Popular Audiobooks page actually looked really cool, but I don't know of a way to make the St Andrews servers see this as an authentic request from their own servers... Sorry :(

Welcome to v2.0.0!

So what's changed?

In reality... not much of the core application. Rather, changes are seen in how the application is deployed. Now an express server is being used, with the html being rendered as ejs to allow for me to make appropriate requests, receive the results and display them to the user.

So why v2.0.0?

Well... v1.0.0 was never a thing, but that didn't stop me from starting with v2.0.0. Anyway, a pseudo v1.0.0 can be seen as the application when it would not be sent as a response to a GET request to the new express server. That approach would not work for this practical, hence why v2.0.0. I guess. (That didn't really answer the question did it?)

Okay, well at least tell me how to run it

  • Firstly you'll probably need to clone the repository no more of that GitHub Pages nonsense
  • Once cloned, go to the root folder of the project in terminal
  • Then you'll need to type npm install to install the dependencies (If you don't have node and npm get those first)
  • After you have the relevant dependencies, type npm start to start the server
  • This will allow you to go to localhost:20763 in your browser to see the website
  • Simple Right?

p2-databases's People

Contributors

victorijnr avatar

Stargazers

 avatar

Watchers

 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.