This repository contains a Contact List Application built using .NET Web API for the backend and Angular for the frontend. The application allows users to manage contacts efficiently, including features like adding, editing, deleting, and viewing contact details.
- Add Contact: Add new contacts with details like name, phone number, and email.
- Edit Contact: Update the details of existing contacts.
- Delete Contact: Remove contacts from the list.
- View Contacts: Display all contacts in a user-friendly interface.
- Responsive Design: Optimized for both desktop and mobile devices.
- .NET Web API: RESTful API to handle CRUD operations.
- Entity Framework: For database interactions.
- SQL Server: As the database for storing contact information.
- Angular: For building a dynamic and responsive user interface.
- Bootstrap: For styling the application.
- .NET 6 SDK
- Node.js (LTS version recommended)
- Angular CLI
- SQL Server
-
Clone the repository:
git clone https://github.com/Zainulabdeenoffical/ContactListUsing.netwebapi-Angular.git cd ContactListUsing.netwebapi-Angular
-
Set up the backend:
- Navigate to the
Backend
folder:cd Backend
- Restore dependencies:
dotnet restore
- Update the
appsettings.json
file with your SQL Server connection string. - Apply migrations to the database:
dotnet ef database update
- Run the backend server:
dotnet run
- Navigate to the
-
Set up the frontend:
- Navigate to the
Frontend
folder:cd Frontend
- Install dependencies:
npm install
- Run the Angular development server:
ng serve
- Open the application in your browser at
http://localhost:4200
.
- Navigate to the
ContactListUsing.netwebapi-Angular/
├── Backend/ # .NET Web API Backend
├── Frontend/ # Angular Frontend
├── README.md # Project Documentation
- GET /api/contacts: Retrieve all contacts.
- GET /api/contacts/{id}: Retrieve a contact by ID.
- POST /api/contacts: Add a new contact.
- PUT /api/contacts/{id}: Update an existing contact.
- DELETE /api/contacts/{id}: Delete a contact.
Contributions are welcome! Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the MIT License.
For any questions or feedback, feel free to reach out:
- GitHub: Zainulabdeenofficial
- Email: [email protected]
Happy coding! ✨