2018-06-05 22:43:50 +00:00
|
|
|
# BrainWare Order List
|
|
|
|
|
|
|
|
This is a very small sample web application written in a very simplistic manner.
|
|
|
|
|
|
|
|
Grab the code and refactor it so that it meets your standard for production ready code.
|
|
|
|
|
|
|
|
There is no need to add additional functionality and you do not need to keep the existing code or project structure.
|
|
|
|
|
|
|
|
The only requirement is that it returns the list of orders and that it meets your standards!
|
|
|
|
|
2019-11-11 21:33:21 +00:00
|
|
|
Fork this project to your personal repo and commit all your changes to that branch.
|
|
|
|
|
2018-06-05 22:43:50 +00:00
|
|
|
## Changes for Running Locally
|
|
|
|
|
|
|
|
Update the connection string in the class <project root>\Web\Infrastructure\Database.cs.
|
|
|
|
|
|
|
|
Change the AttachDbFile name to the full path of the BrainWare.mdf file (located under <project root>\Web\App_Data\).
|
|
|
|
|
|
|
|
|
|
|
|
## Original Output Example
|
2018-06-06 01:01:19 +00:00
|
|
|
![page image](output.GIF?raw=true)
|
2020-04-29 20:28:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
### Database Setup
|
|
|
|
- Start SQL Server Management Studio as Administrator
|
2020-04-30 19:27:33 +00:00
|
|
|
- Once connected to your local SQL Server instance
|
|
|
|
- Right click on the Database node and select Attach
|
2020-04-29 20:28:34 +00:00
|
|
|
- Select the file BrainWare\Web\App_Data\BrainWare.mdf
|
|
|
|
|
|
|
|
- You can also deploy the project ProjectDB to your local SQL Server instance
|
|
|
|
- Then execute in SQL Server Management Studio the file BrainWare\ProjectDB\PopulateDB.sql
|
|
|
|
|
|
|
|
### Visual Studio
|
|
|
|
- Open solution BrainWare\BrainWare.sln
|
2020-04-30 23:12:39 +00:00
|
|
|
- Update the database connection string in file Web\Infrastructure\Database.cs
|
2020-04-29 20:28:34 +00:00
|
|
|
- Set the project Web, as the start up project
|
|
|
|
- Press F5
|
2020-04-30 19:27:33 +00:00
|
|
|
- Expected a browser is open with the result of the first order
|