An e-commerce website that sells different kinds of coffee from around the world
This is an application built on .NET CORE MVC which provides a user-friendly and visually appealing interface, as well as integrates essential features for managing products, and customers accounts.
git clone https://github.com/FruitbatM/roast-hive
OR
Download the zipped file
cd project-file-path
dotnet build
dotnet run
Users can register online. However, permissions will need to be modified using SQL queries. Having an admintrative role will allow a user to manage the products online.
To assign a user an adminitrator role:
Right click on the database RoastHiveApiMVC.db in Visual Code and choose open.
Locate the AspNetRoles table and right-click it.
Select the New Query [Insert] option and insert the following code in the editor:
INSERT INTO AspNetRoles (Id, Name, NormalizedName, ConcurrencyStamp)
VALUES ("ID Value", "Administrator", "ADMINISTRATOR", "ConcurrencyStamp Value");
Run query.
To assign the admin role, the user account id is first needed. Run the following query:
SELECT Id FROM AspNetUsers
WEHERE UserName = '<EMAIL ADDRESS USED!>'
Copy the ID and then replace the
INSERT INTO AspNetUserRoles(UserId, RoleId)
VALUES ("<USER ID>", "72c79f64-d8b1-4ed1-9d22-1e51acc01f36")