https://github.com/joegithubpro/store
Web API .NET Core 7.0
https://github.com/joegithubpro/store
Last synced: 6 months ago
JSON representation
Web API .NET Core 7.0
- Host: GitHub
- URL: https://github.com/joegithubpro/store
- Owner: JoeGitHubPro
- Created: 2023-08-05T18:56:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T03:41:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-19T10:17:42.068Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 20.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Welcome to Store 👋
> This repository contains a Store API project built using .NET Web API Core 7.0. The API includes JWT-based authentication and utilizes the repository pattern and Entity Framework Core's code-first approach. AutoMapper and DTOs are used for presentation requests.
### 🏠 [Homepage](https://github.com/JoeGitHubPro/Store)
## Documentation
> This documentation provides the API endpoints using Postman.
## Prerequisites
Before running the API project, ensure you have the following software installed:
- .NET 7.0 SDK
- Visual Studio or Visual Studio Code (optional)
- SQL Server
## Getting Started
To get started with the project, follow these steps:
1. Clone the repository to your local machine.
2. Open the project in your preferred development environment (such as Visual Studio or Visual Studio Code).
3. Build the project to restore NuGet packages and compile the source code.
## Configuration
The API project requires some configuration settings to run properly. Open the `appsettings.json` file and update the following settings:
```json
{
"ConnectionStrings": {
"DefaultConnection": "YourConnectionString"
},
"JwtSettings": {
"SecretKey": "YourSecretKey",
"Issuer": "YourIssuer",
"Audience": "YourAudience"
}
}
```
- `DefaultConnection`: Replace this with your own database connection string.
- `SecretKey`: Replace this with a secure secret key for JWT token generation.
- `Issuer`: Replace this with the issuer name for JWT tokens.
- `Audience`: Replace this with the audience for JWT tokens.
## Deploy DataBase
```sh
After edit appSettings to target database , database created automatically such project run
```
## Repository Pattern
The project follows the repository pattern to separate data access logic from the API controllers. The `Repositories` folder contains repository classes for each entity, responsible for querying and modifying the data.
## AutoMapper and DTOs
AutoMapper and DTOs (Data Transfer Objects) are used for mapping between the entities and the API presentation layer. The `AutoMapperProfiles.cs` file contains the mapping configurations for different entities and DTOs.
## Author
👤 **Youssef Mohamed Ali**
* Website: https://joegithubpro.github.io/Profile/
* Twitter: [Y\_mohamed\_Ali](https://x.com/Y_mohamed_Ali)
* Github: [@JoeGitHubPro](https://github.com/JoeGitHubPro)
* LinkedIn: [youssef-mohamed-ali](https://linkedin.com/in/https:\/\/www.linkedin.com\/in\/youssef-mohamed-ali)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
If you would like to contribute to this project, please follow these steps:
1. Fork the repository.
1. Create a new branch for your feature or bug fix.
1. Make your changes and commit them.
1. Push your changes to your forked repository.
1. Submit a pull request to the main repository.
## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2023 [Youssef Mohamed Ali](https://github.com/JoeGitHubPro).
This project is [MIT](MIT) licensed.