Postman collection of requests are found in the project folder as "buythebookstore.postman_collection".
For the application, there is already an admin user : email : oguz@mail and password : oguz123 You can create an admin user by using register request. There is bearer authentication, just be sure to use most recent JWT token after logged in for postman collection.
In order to run the project successfully please follow these steps :
- Project runs on PostgreSQL server. It configured according to file in the BuyTheBookStoreAPI/appsettings.json.
Modify the "ConnectionStrings" attribute as shown below:
- "ConnectionStrings": { "DefaultConnection": "User ID={POSTGRE_USERNAME};Password={DATABASE_PASSWORD}; Server={HOSTNAME/ADDRESS};Port={PORT_NUMBER}; Database={DATABASE_NAME};" },
-
Open Package Manager Console and run these steps in order :
- write add-migration {migration_name}
- write update-database
- After second step executed successfully, go to BuyTheBookStore\BuyTheBookStoreAPI directory in terminal and write following command : dotnet run