Giter VIP home page Giter VIP logo

banner-timing-previewer's Introduction

Banner Timing Previewer

Requirements

  1. The Javascript used for animating the banner must be contained in an object variable. For example:
var creative = {
    timing: {
        fadeIn: ...,
        fadeOut: ...,
        etc...
    },
    initialize: function(){...},
    animate: function(){...},
    etc..
};

Setup Instructions

Back-end

  1. Create or setup a database to use. I was using xampp's MySQL. Update the database config in server/config/Database.php with your database information.
  2. Create a 'banners' table in your database. Alternatively name the table anything, but update the model in server/models/Banner.php to reflect your table names.
    • The Banner table should have an ID field set to autoincrement and a route column.

Front-end

  1. In client/src/app/services verify that both the banner and file-uploader services are using the correct localhost port for your setup. Mine is configured for port 8080.

Startup

  1. Ensure your MySQL database is up and running and you have a backend server up and running. If using xampp, this is just starting Apache and MySQL.
  2. Navigate to the client folder in a different terminal and run ng serve to begin running your dev server on port 4200.

banner-timing-previewer's People

Contributors

dsschapira avatar angular-cli avatar

Watchers

James Cloos avatar

banner-timing-previewer's Issues

Attempt to Store File Throws Error

When uploading a file, an error is thrown stating "Object of class StdClass could not be converted to a string in BannerObject.php on liine 31".

This is where we store the file sent from the front end to the BannerObject instance's file property. This is almost definitely an issue of just getting the right data type but I'm still tracking down whether I need to manipulate it before sending the POST request from Angular or after it's received in the PHP backend.

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.