Sample web application for managing inventory.
This application contains 3 models of data; designers, styles, and sample inventory. A sample inventory record belongs to a style, where a style will belong to a specific designer.
This is an MVC application, built with .NET Core and React.js (and Bootstrap as CSS framework). An ORM is used for the database model (Entity Framework Core).
- Clone this repo
- Add a
secrets.json
file with 2 values:defaultConnection
(DB connection string) andauthSecret
(secret used to generate JWT auth token) - The
authSecret
should be 16 > characters as the keysize should be > 128 bits - Once the
defaultConnection
string is added with a valid DB connection string is added, open VS package manager and runUpdate-Database
to recreate the DB
Currently this application does not have the ability to add a new user, therefore this will have to be done manually. You can use the method PasswordHash.GenerateAuthElements()
to generate a dummy hash and salt to test out login. Alternatively, you can use the below insert to add the user USER: test, PW: 12345
as a test user to the DB
insert into users (FirstName, LastName, Username, PasswordHash, PasswordSalt)
values ('User', 'One', 'Test', 'e5EGRpeFruRg1P8fwg8CedRVnx4UFW2hIbFPth7qqH4=', 'cz4EDFflH7WOkOE1fOi39w==');
- Run the app
To contribute, look for tickets in Issues
tab of this repo