GithubHelp home page GithubHelp logo

time-tracker's Introduction

About

This is a simple web app built for demo and learning purposes.

You can view a live demo of the app here: https://time-tracker-demo.herokuapp.com. For convenience, the login page is pre-populated with credentials of a demo account.

Technology

Local Development

Setup

Mysql

To run the app locally, you'll need to:

  • Install mysql locally
  • Run mysql
  • Create a database to be used
  • Create a user with all permissions for the database
  • Setup an environment variable so the app knows what database to access (see Envionrment Variables below)

Environment Variables

Create a file named ".env" in the root directory. There are some environmental variables that need to be defined here for the app to work correctly.

Define the following variables:

NODE_ENV='development'
PORT=3000
API_URL=http://localhost:3000/api
API_DB_URL=mysql://username:password@localhost:3306/db_name
SECRET="something"
ADMIN_PASSWORD="whatever"

Load Default Data into the Database

After setting up your database and environment variables, you can load some default data by running:
npm run load-fixtures

Watch Tasks

To compile server code to es5 (build directory) and rebuild in response to changes:
npm run build-server-watch

To run the server, and restart on any changes:
npm run dev-server-watch

To recompile frontend on change:
npm run build-frontend-watch

Testing

Make sure the server is built and running:
npm run build-server
npm run dev-server

Then run the test suite:
npm test

time-tracker's People

Contributors

mbaxter avatar

Stargazers

bridgev avatar

Watchers

James Cloos avatar  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.