Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turulomio/calories_tracker
Migration of caloriestracker project to vue
https://github.com/turulomio/calories_tracker
Last synced: 6 days ago
JSON representation
Migration of caloriestracker project to vue
- Host: GitHub
- URL: https://github.com/turulomio/calories_tracker
- Owner: turulomio
- Created: 2022-01-28T11:09:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-22T11:45:34.000Z (11 days ago)
- Last Synced: 2024-12-22T12:18:08.116Z (11 days ago)
- Language: Vue
- Size: 1.52 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CaloriesTracker
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fturulomio%2Fcalories_tracker%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/turulomio/calories_tracker/goto?ref=main)
This is the Vue 3 evolution of the branch vue2 of project https://github.com/turulomio/calories_tracker/ and it's the frontend app of https://github.com/turulomio/django_calories_tracker backend.
## Installation
### Django_calories_tracker installation
You need to create a new database. I recommend postgresql.
`createdb -U postgres calories_tracker -h 127.0.0.1`
Clone https://github.com/turulomio/django_calories_tracker and https://github.com/turulomio/calories_tracker repositories or download same version releases
```bash
cd django_calories_tracker
poetry shell
poetry install
```Edit settings.py if needed and run backend
```bash
python manage.py migrate
python manage.py createsuperuser
python manage.py loaddata calories_tracker/fixtures/all.json
python manage.py runserver
```### CaloriesTracker installation
Compiles and hot-reloads for development
```bash
cd calories_tracker
npm run dev
```## Testing
This app has two testing procedures:
- `npm run vitest` Used to test independent functions
- `npm run cypress` or `npm run cypress_console` Used for e2e testing with Cypress, to test UI logic. To use this command, you need to run from django_calories_tracker sources root: `poe cypress_test_server`## Changelog