Giter Site home page Giter Site logo

heggy231 / angular-tips Goto Github PK

View Code? Open in Web Editor NEW

This project forked from franciscojgtz/angular-tips

0.0 1.0 0.0 698 KB

angular-tips is an application to keep track of income tips.

Home Page: http://angularjs-tiptracker.gutierrezfrancisco.net/#/home

PHP 76.61% JavaScript 10.99% CSS 3.16% HTML 9.24%

angular-tips's Introduction

angular-tips


Demo

angular-tips is a tip tracker app based on AngularJS-- handy for anyone who works at a restaurant or receives tip income.

Based on


angular-tips is a combination of the following projects: AngularJS Authentication and AngularJS Restful API

Instructions

1- Clone this repository

2- Create a MySQL database in PHPmyAdmin

3- Create the following tables

--
-- Table structure for table `tips`
--

DROP TABLE IF EXISTS `tips`;
CREATE TABLE IF NOT EXISTS `tips` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `tip` double NOT NULL,
  `tipout` double NOT NULL,
  `sales` double NOT NULL,
  `hoursworked` double NOT NULL,
  `hourlypay` double NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `date` date DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
  `uid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `password` varchar(500) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`uid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

4- Navigate to API/vi and create the file: config.php

5- In config.php add the following code:

<?php
/**
 * Database configuration
 */
define('DB_USERNAME', REPLACE_WITH_USERNAME);
define('DB_PASSWORD', REPLACE_WITH_PASSWORD);
define('DB_HOST', REPLACE_WITH_HOST);
define('DB_NAME', REPLACE_WITH_DATABASE);

?>

Make sure to replace the indicated code.

angular-tips's People

Contributors

franciscojgtz avatar heggy231 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.