This is a site which provides a possibility to write down some information about your meals and to manage a number of calories which you eat per a day. If a number of calories, consumed by you for some day, are more than a maximum number of calories per a day, specified in your profile, all your meals get a red color for this day. It clearly allows to control a number of calories which you eat per a day and can be useful for you if you train somewhere (gym, swimming, etc.).
The application keeps all information about your meals and allows to filter it by date and time and also to find it by a field, specified by you. For managing your meals all CRUD operations (Create, Read, Update, Delete) are available for you.
The application has the next language modes:
- Russian
- English
You can choose suitable for you.
You can change your:
- Name
- Calories per a day
- Password
The application has the next types of roles:
- User
- Admin
If you are an ADMIN, in addition to the above, you can:
- Read a list of all users
- Add user (name, email, password)
- Edit user (name, email)
- Delete user (besides ROLE_ADMIN)
- Disable/enable user (ban/unban)
All information which you can enter on the site is validated and therefore read carefully the tooltips when you have some error.
- Go to http://calories-manager-java.herokuapp.com/
- If you haven't an account, press Create account
- If you already have an account, enter your credentials and press Login
- If you don't want to create your own account, you can test by using the next accounts:
- user@yandex.ru password (USER)
- admin@gmail.com admin (ADMIN)
The application provides a possibility to get data by using REST API (using JSON).
Firstly you need to pass a basic authentication and then you can use it by the next urls:
- http://calories-manager-java.herokuapp.com/rest/profile
- http://calories-manager-java.herokuapp.com/rest/profile/meals
Every layer of the application is covered by Spring/JUnit4 tests.
