Application that uses an API and interface to run a local business rating app. User can add types of business, then places to list within the type with a short description.
- As a user, I want to be able to GET all category.
- As a user, I want to be able to GET all places related to category.
- As a user, I want to be able to POST category.
- As a user, I want to be able to POST places to category.
- As a user, I want to be able to see a list of all categories.
- As a user, I want to be able to POST a review.
To view API endpoints for personal use, visit http://localhost:5000/swagger/index.html#/Places when servers are running on the API side.
CATEGORY
GET /api/categories
POST /api/categories
GET /api/categories/{categoryId}
PUT /api/categories/{categoryId}
DELETE /api/categories/{categoryId}
PLACES
GET /api/categories/{categoryId}/places
POST /api/categories/{categoryId}/places
GET /api/categories/{categoryId}/places/{id}
PUT /api/categories/{categoryId}/places/{id}
DELETE /api/categories/{categoryId}/places/{id}
COMMENTS (Reviews)
GET /api/categories/{categoryId}/places/{placeId}/Comments
POST /api/categories/{categoryId}/places/{placeId}/Comments
GET /api/categories/{categoryId}/places/{placeId}/Comments/{id}
PUT /api/categories/{categoryId}/places/{placeId}/Comments/{id}
- Click here to download a .NET Core SDK from Microsoft Corp.
- Open the file (this will launch an installer which will walk you through installation steps. Use the default settings the installer suggests.)
- Click here to download the 64-bit .NET Core SDK from Microsoft Corp.
- Open the .exe file and follow the steps provided by the installer for your OS.
Enter the command dotnet tool install -g dotnet-script
in Terminal (macOS) or PowerShell (Windows).
- .NET Framework
- Text Editor (Visual Studio Code)
-
Clone the repository:
git clone https://github.com/zakkreyshort/LocalBusiness
-
Move to directory:
cd LocalBusiness cd LocalBusinessApi
-
Restore all dependencies:
dotnet restore
-
Compile and Run code:
dotnet build dotnet run
-
Repeat steps 2-4 to operate interface by:
cd .. cd LocalBusinessInterface
-
View webpage in browser using
http://localhost:5010
-
Enjoy!
To view/edit the source code of this application, open the contents of this directory in a text editor or IDE of your choice (e.g., to open all contents of the directory in Visual Studio Code on macOS, enter the command code .
in Terminal).
- Git
- VSCode
- C#
- HTML
- Razor
- .NET Core 2.2
- ASP.NET Core MVC 2.2
- dotnet script
- MySQL
- MySQL Workbench
- Entity Framework Core 2.2
- RestSharp API
- Newtonsoft.Json
Currently there's no known bugs. Working to add reviews as comments to each place.
If there are any issues running this website I would love feedback! Please email me at
Licensed under the MIT license.