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.
Check out the live demo of the frontend hosted on Vercel:
- 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
- Angular 18.2.0
- TypeScript
- Bootstrap 5
- ASP.NET Core 8 (for backend)
- Entity Framework Core (for database management)
- Vercel (for frontend deployment)
Make sure you have the following installed on your machine:
- Node.js (v16 or later)
- Angular CLI
- Git
-
Clone the Repository
git clone https://github.com/mikailakar/Fullstack-Project.git cd Fullstack-Project
-
Install Dependencies
npm install
-
Environment Configuration
- Configure
environment.ts
andenvironment.prod.ts
files inside thesrc/environments
folder. - Add your API URL to connect with the backend:
export const environment = { production: false, apiUrls: { ApiUrl: 'https://your-backend-url.com/' } };
- Configure
-
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
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