Employee Manager is a web application developed using ASP.NET and C#. The project incorporates MS SQL Server via Entity Framework and is structured with microservices and API management using Ocelot. It also integrates features such as password hashing (SHA256), validation, cookie-based authentication, and all in an asynchronous process. With CRUD functionality for employees under the admin role, it provides managers the ability to manage employees, while employees without admin roles can view their own data.
This project was created as part of a homework assignment at IT Step Computer Academy. It demonstrates CRUD operations for employee management with role-based access control, including admin privileges and employee self-service, integrating MS SQL Server with Entity Framework. The project also uses Bootstrap for UI styling and Swagger for API documentation.
Note: This project requires an MS SQL Server setup with proper connection strings.
Follow these steps to set up the project:
- Clone the repository:
git clone https://github.com/zabavb/Employee-manager-asp-app.git
- Configure your MS SQL Server and update the connection strings in the
appsettings.json
file. - Install the required NuGet packages, including Ocelot, Microsoft.EntityFrameworkCore, Swashbuckle.AspNetCore, and others as needed.
- Open the solution file in Visual Studio, build the project, and run the application.
- Role-based Access: Admin users can perform CRUD operations, while employees can only view their personal data.
- Security: SHA256 hashing for passwords, cookie-based authentication, and an authorization system.
- API: Integrated API management using Ocelot, with Swagger documentation.
To use this application, ensure you have the necessary permissions and connection strings configured. Admins can manage employees, and employees can view their personal details.
Contributions are welcome! If you have any suggestions or improvements, feel free to fork the repository and submit a pull request.
- Fork the Repository: Click the "Fork" button at the top-right of this page.
- Create a Branch: Create a new branch for your changes.
- Commit Changes: Make your changes and commit them with a descriptive message.
- Push to Your Fork: Push your changes to your forked repository.
- Submit a Pull Request: Go to the "Pull Requests" tab and submit a new pull request.
For any questions or inquiries, you can reach me at email or connect with me on LinkedIn.
- C# Documentation
- Entity Framework Documentation
- Ocelot API Documentation
- Microservices Architecture
- ASP.NET Core Authentication with Cookies
- Swagger Documentation
- Bootstrap Documentation
- MS SQL Server Documentation
- SHA256 Hashing Documentation
- Thanks to IT Step Academy for providing the resources and guidance for this project.
- Special thanks to Microsoft for their comprehensive documentation and cloud services.
- Gratitude to the open-source community for NuGet packages and contributions.
Feel free to modify or extend this README to fit your needs better. Happy coding!