Edited: App is rebranded to Fuel Stats
This commit is contained in:
parent
eff5be49c4
commit
c29bd7cbab
6
LICENSE
6
LICENSE
@ -208,8 +208,8 @@ If you develop a new program, and you want it to be of the greatest possible use
|
|||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
habit-tracker
|
Fuel Stats
|
||||||
Copyright (C) 2024 fr
|
Copyright (C) 2024 Filip Rojek
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ Also add information on how to contact you by electronic and paper mail.
|
|||||||
|
|
||||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
habit-tracker Copyright (C) 2024 fr
|
Fuel Stats Copyright (C) 2024 Filip Rojek
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
52
README.md
52
README.md
@ -1,32 +1,32 @@
|
|||||||
# Habit Tracker
|
# Fuel Stats
|
||||||
|
|
||||||
An app for tracking habits and motivation to achieve personal goals
|
An app for tracking your fuel consumption and optimizing your driving efficiency.
|
||||||
|
|
||||||
## Used technologies
|
## Used Technologies
|
||||||
- **Frontend:** HTML, CSS, JavaScript
|
- **Frontend:** HTML, CSS, JavaScript
|
||||||
- **Backend:** PHP (OOP)
|
- **Backend:** PHP (OOP)
|
||||||
- **Database:** MariaDB
|
- **Database:** MariaDB
|
||||||
|
|
||||||
## How to build
|
## How to Build
|
||||||
|
|
||||||
### Build using docker
|
### Build Using Docker
|
||||||
Run the container using docker-compose
|
Run the container using docker-compose:
|
||||||
```bash
|
```bash
|
||||||
docker-compose up
|
docker-compose --profile <dev|prod> up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
The app should be available at http://localhost:8000
|
The app should be available at http://localhost:8000.
|
||||||
|
|
||||||
PhpMyAdmin should be available at http://localhost:8080
|
PhpMyAdmin should be available at http://localhost:8080.
|
||||||
|
|
||||||
### Build manually
|
### Build Manually
|
||||||
1. Clone the repo
|
1. Clone the repository:
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.filiprojek.cz/fr/habit-tracker.git
|
git clone https://git.filiprojek.cz/fr/fuel-stats.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Create `config/environment.php`
|
2. Create `config/environment.php`:
|
||||||
- It should have following structure:
|
- It should have the following structure:
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@ -35,21 +35,23 @@ define('DB_USER', 'your db username');
|
|||||||
define('DB_PASS', 'your db password');
|
define('DB_PASS', 'your db password');
|
||||||
define('DB_NAME', 'your db name');
|
define('DB_NAME', 'your db name');
|
||||||
```
|
```
|
||||||
- For the database, you can use included `docker-compose.yaml` which have both MariaDB and PhpMyAdmin
|
- For the database, you can use the included `docker-compose.yaml` which includes both MariaDB and PhpMyAdmin.
|
||||||
|
|
||||||
3. Start an local web server
|
3. Start a local web server:
|
||||||
- You can use php's integrated server by running this:
|
- You can use PHP's integrated server by running this:
|
||||||
```bash
|
```bash
|
||||||
php -S localhost:8000 -t ./public
|
php -S localhost:8000 -t ./public
|
||||||
```
|
```
|
||||||
- You can use any host and any port you want.
|
- You can use any host and any port you prefer.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
1. Register and Login to the app.
|
1. Register and log in to the app.
|
||||||
2. Add your habits.
|
2. Add your vehicles with their details (fuel type, registration, etc.).
|
||||||
3. Mark your habits when you're done doing them.
|
3. Record each refueling:
|
||||||
4. Earn point and unlock achievements by completing you're habits!
|
- Select your vehicle.
|
||||||
|
- Input the number of liters, price per liter, and total cost.
|
||||||
## Licence
|
4. Track your fuel consumption and spending through the dashboard.
|
||||||
This project is licensed under GPL3.0 and later. More information is availabe in `LICENSE` file.
|
5. View detailed stats and graphs to analyze your driving habits.
|
||||||
|
|
||||||
|
## License
|
||||||
|
This project is licensed under GPL3.0 and later. More information is available in the `LICENSE` file.
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<link rel="stylesheet" href="/css/form.css">
|
<link rel="stylesheet" href="/css/form.css">
|
||||||
<section class="form signin">
|
<section class="form signin">
|
||||||
<div class="header-form">
|
<div class="header-form">
|
||||||
<img src="/img/logo.jpg" alt="Habit Tracker Logo">
|
<img src="/img/logo.jpg" alt="Fuel Stats Logo">
|
||||||
<h1>Sign in to Habit Tracker</h1>
|
<h1>Sign in to Fuel Stats</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($this->get('error')): ?>
|
<?php if ($this->get('error')): ?>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="bordered">
|
<div class="bordered">
|
||||||
<p>New to Habit Tracker?</p>
|
<p>New to Fuel Stats?</p>
|
||||||
<a href="/auth/signup">Create an account</a>
|
<a href="/auth/signup">Create an account</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<link rel="stylesheet" href="/css/form.css">
|
<link rel="stylesheet" href="/css/form.css">
|
||||||
<section class="form signup">
|
<section class="form signup">
|
||||||
<div class="header-form">
|
<div class="header-form">
|
||||||
<img src="/img/logo.jpg" alt="Habit Tracker Logo">
|
<img src="/img/logo.jpg" alt="Fuel Stats Logo">
|
||||||
<h1>Sign up to Habit Tracker</h1>
|
<h1>Sign up to Fuel Stats</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($this->get('error')): ?>
|
<?php if ($this->get('error')): ?>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Habit Tracker | Error 494</title>
|
<title>Fuel Stats | Error 494</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Error 404 - Page not found</h1>
|
<h1>Error 404 - Page not found</h1>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1>Welcome to Habit Tracker!</h1>
|
<h1>Welcome to Fuel Stats!</h1>
|
||||||
<p>Track your habits and achieve your goals.</p>
|
<p>Keep track of your refuels.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta name="author" content="Filip Rojek | http://filiprojek.cz">
|
<meta name="author" content="Filip Rojek | http://filiprojek.cz">
|
||||||
<meta name="email" content="webmaster(@)fofrweb.com">
|
<meta name="email" content="webmaster(@)fofrweb.com">
|
||||||
<meta name="copyright" content="(c) filiprojek.cz">
|
<meta name="copyright" content="(c) filiprojek.cz">
|
||||||
<title>Habit Tracker | <?= $data['title'] ?></title>
|
<title>Fuel Stats | <?= $data['title'] ?></title>
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
<link rel="stylesheet" href="/css/global.css">
|
<link rel="stylesheet" href="/css/global.css">
|
||||||
<link rel="stylesheet" href="/css/vars.css">
|
<link rel="stylesheet" href="/css/vars.css">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta name="author" content="Filip Rojek | http://filiprojek.cz">
|
<meta name="author" content="Filip Rojek | http://filiprojek.cz">
|
||||||
<meta name="email" content="webmaster(@)fofrweb.com">
|
<meta name="email" content="webmaster(@)fofrweb.com">
|
||||||
<meta name="copyright" content="(c) filiprojek.cz">
|
<meta name="copyright" content="(c) filiprojek.cz">
|
||||||
<title>Habit Tracker | <?= $data['title'] ?></title>
|
<title>Fuel Stats | <?= $data['title'] ?></title>
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
<link rel="stylesheet" href="/css/global.css">
|
<link rel="stylesheet" href="/css/global.css">
|
||||||
<link rel="stylesheet" href="/css/vars.css">
|
<link rel="stylesheet" href="/css/vars.css">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('DB_HOST', '0.0.0.0');
|
define('DB_HOST', '0.0.0.0');
|
||||||
define('DB_NAME', 'habit_tracker');
|
define('DB_NAME', 'fuel_stats');
|
||||||
define('DB_USER', 'username');
|
define('DB_USER', 'username');
|
||||||
define('DB_PASS', 'password');
|
define('DB_PASS', 'password');
|
||||||
|
@ -17,7 +17,7 @@ services:
|
|||||||
- PMA_ARBITRARY=1
|
- PMA_ARBITRARY=1
|
||||||
profiles: ["dev"]
|
profiles: ["dev"]
|
||||||
|
|
||||||
habittracker:
|
fuelstats:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
Loading…
Reference in New Issue
Block a user