Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskian/bicycle-tracking
Bicycle Ride Tracker - Add Ride Name, Distance and Km 🚴.
https://github.com/mskian/bicycle-tracking
bicycle bulma bulma-css css cycling habits html javascript json localstorage sports tracker
Last synced: about 1 month ago
JSON representation
Bicycle Ride Tracker - Add Ride Name, Distance and Km 🚴.
- Host: GitHub
- URL: https://github.com/mskian/bicycle-tracking
- Owner: mskian
- License: mit
- Created: 2024-05-18T14:00:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T06:49:16.000Z (5 months ago)
- Last Synced: 2024-10-01T01:41:02.383Z (about 1 month ago)
- Topics: bicycle, bulma, bulma-css, css, cycling, habits, html, javascript, json, localstorage, sports, tracker
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bicycle Ride Tracker 🚴
Bicycle Ride Tracker - Add Ride Name, Distance and Km.
- HTML
- Bulma CSS
- Javascript
- Chart.js
- PHP PDO for API and Store Users Ride data into Database
- MYSQL## Setup and Modification
- `/api/` folder
- Copy the SQL Query from `query.sql` file and Create Table for users and Ride data
- Add API KEY and Database Details in `.env` file```env
APIKEY=xxxxxxxx
DBHOST=localhost
DBNAME=xxxxxxxxxx
DBUSER=xxxxxxxxxxxx
DBPASSWORD=xxxxxxxxxxxx
```- Register New user
```sh
curl --request POST \
--url http://localhost:6004/api/new.php \
--header 'Authorization: Bearer APIKEY' \
--header 'Content-Type: application/json' \
--data '{
"username": "username",
"password": "password"
}
'
```- Approve users Manually from database : **1 for approved and 0 Not approved**
- Done## Access and Add data
- Just Login and Start adding your Ride Data
```sh
## Start PHP local server
php -S localhost:6004## Open URL
http://localhost:6004/```
## LICENSE
MIT