- [email protected]
- Entity Framework [email protected]
- Font [email protected]
- JQuery Validation [email protected]
- Jquery [email protected]
- [email protected]
- [email protected]+g65c9be8001
- [email protected]
Step 1: clone this repo
$ git clone https://github.com/alochaus/Mangary.git
$ cd Mangary
$ mkdir wwwroot/UploadedPhotos
Step 2: install dependencies
$ dotnet tool install -g dotnet-ef
$ dotnet tool install -g Microsoft.Web.LibraryManager.Cli
$ dotnet restore
$ libman restore
Step 3: connection string
Linux and MacOS:
3.1: Open ~/.bash_profile with a text editor.
3.2: Add the following line and replace YourConnectionString by your connection string:
export MangaryConnectionString="YourConnectionString"
Note: keep the double quotes.
Your connection string should look like this:
Host=localhost;Database=mangary;Username=aloc;Password=mysupersecretpassword
If you want to enable other features (e.g., pooling) you can check this page.
3.3: Run the script.
$ source ~/.bash_profile
Windows:
I don't know how to set environment variables on Windows but this page might help you. Make sure that the key is MangaryConnectionString and the value is the connection string.
Step 4: create database
$ dotnet ef database update
Step 5: run it
$ dotnet run
- Responsive layout
- Accounts
- Roles (admin and manager)
- Create, edit and delete products (only available for users with manager role)
- Role manager (only available for users with admin role)
- Shopping cart
- Search by name or category
- Tables designed for the app to be scalable to as many categories as you want