Food Awesome is a simple recipe app where you can store/create/share your recipes.
!!! This project is a client app only and need working backend that serve api for client !!!
Install all project packages:
npm install
Run dev server:
npm run watch
Run tests:
Unit
E2E
To build project
npm run build
or
npm run build:dev
or
npm run build:prod
| Method | Endpoint | Parameters | Data | Description |
|---|---|---|---|---|
| GET | /api/recipes/random | null | null | Return random recipe from database |
| GET | /api/recipes | null | null | Return all created recipes from database |
| GET | /api/recipes/id | ( Integer ) id | Return recipe with specific id | |
| GET | /api/recipes/stats | null | null | Return some statistic information like 'Number of created recipes' |
| POST | /api/recipes/ | null | token, new recipe data | Create new recipe |
| PUT | /api/recipes/id | ( Integer ) id | token, updated recipe data | Update recipe |
| DELETE | /api/recipes/id | ( Integer ) id | token | Delete recipe |
| GET | /api/recipes/id/details | (Integer) id | null | Return details about recipe with specific id |
| POST | /auth/login | null | login, password | Log in user to service and return special secret token for user |
| POST | /auth/register | null | login, email, password, repeat password | Create new user record in database (Add new user) |
| POST | /users/id/recipes | ( Integer ) id | token | Returns the user's recipes with the specified id |