- 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..
};
- 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.
- 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.
- 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.
- 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.
- Navigate to the client folder in a different terminal and run ng serve to begin running your dev server on port 4200.