Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.
/ 5K-logger Public archive

React + Laravel + CouchDB app that logs my 5Ks. What do you mean this is overkill

Notifications You must be signed in to change notification settings

zysim/5K-logger

Repository files navigation

Tracker

Intro

Hello and welcome to the Tracker app. This logs my 5K lap times. It uses React, Laravel 6.0, and CouchDB. What do you mean that is overkill.

A Priori

This uses:

This app uses Laravel's Homestead too, which involves installing a VM provider; that doc page lists which ones you can get.

Installation

I mean, why would you wanna work on this but sure:

If you really know what you're doing you can tweak the installation steps I'm about to describe.

After installing and configuring Homestead and VirtualBox (and additionally, going through "Accessing Homestead Globally" in this chapter), run these in the terminal:

$ git clone <this/repo.git> && cd <this/repo>
$ mv .Homestead.yaml.example .Homestead.yaml
$ mv .env.example .env
$ composer install
$ npm i
$ vagrant up
$ vagrant ssh

Working the Front

Open up resources/assets/js/app.js and resources/assets/js/components/Main.js to learn how a React component gets tied into the overall shebang. Laravel+React uses Laravel Mix to work, so read that link. In particular, this tiny section in the page.

Once you have that sorted out, go do your React-ing. Then run either npm run dev or npm run watch to compile.

React won't update unless you run npm run dev. So don't keep refreshing your browser wondering why your new component isn't rendering. Don't be me.

TL;DR npm run dev / npm run watch every time before refreshing your browser

TODO

  • Restructure laptimes listing in TimeList
  • Make update time docs work
  • Literally everything else
  • Finish this README (you know this won't happen)
  • Eat dinner

About

React + Laravel + CouchDB app that logs my 5Ks. What do you mean this is overkill

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published