Skip to content

Angular frontend for the Backend Project. The frontend connects with the ASP.NET Core backend to provide a full-stack application that handles user management, authentication, JWT token decoding, and more.

Notifications You must be signed in to change notification settings

mikailakar/Fullstack-Project

Repository files navigation

Angular Frontend for Backend Project

This is the Angular frontend for the Backend Project. The frontend connects with the ASP.NET Core backend to provide a full-stack application that handles user management, authentication, JWT token decoding, and more.

Table of Contents


Demo

Check out the live demo of the frontend hosted on Vercel:

Features

  • User authentication using JWT tokens
  • View, add, update, and delete users
  • Decode JWT tokens to get user information
  • Search users by ID
  • Filter users by roles and dates
  • Responsive UI with Bootstrap integration

Technologies Used

  • Angular 18.2.0
  • TypeScript
  • Bootstrap 5
  • ASP.NET Core 8 (for backend)
  • Entity Framework Core (for database management)
  • Vercel (for frontend deployment)

Prerequisites

Make sure you have the following installed on your machine:

Getting Started

Installation

  1. Clone the Repository

    git clone https://github.com/mikailakar/Fullstack-Project.git
    cd Fullstack-Project
  2. Install Dependencies

    npm install
  3. Environment Configuration

    • Configure environment.ts and environment.prod.ts files inside the src/environments folder.
    • Add your API URL to connect with the backend:
    export const environment = {  
      production: false,  
      apiUrls: {  
        ApiUrl: 'https://your-backend-url.com/'  
      }  
    };

Running the Application

  • Development Server

    ng serve

    Navigate to http://localhost:4200. The app will automatically reload if you change any of the source files.

  • Build for Production

    ng build --prod

API Endpoints

Here's a list of the key endpoints used in this project:

  • GET /api/Users - Get all users
  • GET /api/Users/{id} - Get user by ID
  • POST /api/Users - Add a new user
  • PUT /api/Users/{id} - Update user details
  • DELETE /api/Users/{id} - Soft delete user by ID
  • POST /api/Users/login - User login and get JWT token
  • GET /api/Users/DecodeJwtToken?token={token} - Decode JWT token
  • GET /api/Users/GetUsersWithRoles - Get users with roles
  • GET /api/Users/GetUserWithRoleById?id={id} - Get user with role by ID
  • GET /api/Users/GetAllUsersOrderByDate - Get users by date

Screenshots

1. Main Page

Main Page

2. Users List

Users List

3. JWT Token Decoding

Decode JWT

About

Angular frontend for the Backend Project. The frontend connects with the ASP.NET Core backend to provide a full-stack application that handles user management, authentication, JWT token decoding, and more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published