Skip to content

harecs/ng-recipes

Repository files navigation

ng-recipes

My web app for the SoftUni Project Defense (Angular - February 2024)

See the deployed version: https://harecs.github.io/ng-recipes/

It is a website about recipes. Guests can view the recipes and view the details for a specific recipe. Logged users can explore all the recipes and can create recipes, which they can edit and delete. Also logged users can view their profile and all the recipes that they have created.

Run Locally

  • Clone the project

  • Go to the project directory

  • Install dependencies

npm install
  • Start the server (Use one of the following)
npm run start
ng serve
  • Navigate to http://localhost:4200/

Application Pages

Home Page

App Screenshot

Recipes (users and guests)

List of all the recipes.

App Screenshot

Recipe Details

Recipe details available for all the users to see.

App Screenshot

Register

Register form, with validation and error handling.

App Screenshot

App Screenshot

Login

Login form, with validation and error handling.

App Screenshot

App Screenshot

Add Recipe (only for logged users)

Logged users can add recipes (Serves Count and Image URL are not required. If empty, there will be a default image and serves count = 1).

App Screenshot

Recipe Details (when the recipe creator)

Logged users can see their recipes details and have Recipe Controls for editing and deleting.

App Screenshot

App Screenshot

Edit Recipe (when the recipe creator)

Logged users can edit their own recipes (The form is automatically populated).

App Screenshot

Delete Recipe (when the recipe creator)

Logged users can delete their recipes (From the details page > Recipe Controls).

App Screenshot

Profile (only for logged users)

Logged users can see their profile (Username, date of user creation, created recipes with edit button).

App Screenshot

App Screenshot

404 Not Found

404 page in case of invalid route.

App Screenshot

Error handling

Error hadling in case of server errors.

App Screenshot

App Screenshot

Project Architecture

∇ app
    ∇ core              
        ∇ component-a
            component-a.component.html|css|ts
        ∇ component-b
            component-b.component.html|css|ts
    ∇ guards              
        guard-a.activate.ts
        guard-b.activate.ts
    ∇ modules
         ∇ feature-a
              ∇ components
                  ∇ component-a
                      component-a.component.html|css|ts
                  ∇ component-b
                      component-b.component.html|css|ts
              service-a.service.ts
              feature-a-routing.module.ts
              feature-a.module.ts
          ∇ feature-b
              ∇ components
                  ∇ component-a
                      component-a.component.html|css|ts
                  ∇ component-b
                      component-b.component.html|css|ts
              service-b.service.ts
              feature-b-routing.module.ts
              feature-b.module.ts
    ∇ shared
         ∇ components
              ∇ shared-component-a
                   shared-component-a.component.html|css|ts
              ∇ shared-component-b
                   shared-component-b.component.html|css|ts
         ∇ utils
              shared-util.ts
         ∇ validators
              validator.directive.ts
         shared.module.ts
    ∇ types
        type-a.ts
        type-b.ts
  app-http.interceptor.ts
  app-routing.module.ts
  app.component.css
  app.component.html
  app.component.ts
  app.module.ts
∇ environments
    environment.development.ts
    environment.ts
favicon.ico
index.html
main.ts
styles.css

About

My web app for the SoftUni Project Defense (Angular - February 2024)

Topics

Resources

Stars

Watchers

Forks