This project is a C# web application built with .NET 8.0 and uses various technologies for authentication, configuration, and data access. It utilizes PostgreSQL with Entity Framework Core, and Swagger for API documentation.
- .NET 8.0 SDK: The application is built using the latest version of .NET, providing performance improvements, enhanced security, and simplified code syntax.
- Entity Framework Core: ORM for database interaction, with PostgreSQL as the database provider.
- JWT Authentication: Secure API endpoints with JSON Web Tokens (JWT).
- Swashbuckle/Swagger: Generate and document APIs for testing and easy access.
- Npgsql: PostgreSQL provider for Entity Framework Core.
To run this project locally, ensure you have the following tools installed:
- .NET 8.0 SDK or later: Download .NET SDK
- PostgreSQL: Download PostgreSQL
- Visual Studio or Visual Studio Code for code editing (optional, but recommended).
- Open a terminal or command prompt.
- Clone the repository by running the following command:
git clone https://github.com/zainabimran94/StoryBook-c-
- Navigate into the project directory: cd StoryBook
This project uses PostgreSQL with Entity Framework Core. To set up the database:
- Create a PostgreSQL database locally or on your server.
- Update the connection string in the appsettings.json file.
- Run the following command to apply database migrations:
dotnet ef database update
Run the following command to restore all necessary NuGet packages:
dotnet restore