- Make sure you've worked through the prep guide to install the necessary dependencies (.NET, Visual Studio, and Postgres).
- We recommend creating a "Web + API" run configuration for the solution. This allows you to easily run both the Web and API projects with a single click.
- Update
FormBuilder.API/appsettings.development.json
with the username, password, host, and database for your local Postgres instance. - Run the Web + API configuration. It should automatically migrate and seed your Postgres database.
You can also use dotnet-cli if you prefer a CLI to Visual Studio.
If you are running Visual Studio on Mac or Linux: Change the baseApiUrl
port in FormBuilder.Web/wwwroot/js/app.js
from 50730
to 50731
. On Windows,
Visual Studio proxies requests on port 50730
via IIS Express to 50731
.
- Right click on the top-level Solution (not a folder/Project) and select "Properties"
- Under Common Properties > Startup Project, select "Multiple Startup Projects"
- For
FormBuilder.API
andFormBuilder.Web
, change the Action to "Start"
- Right click on the top-level Solution (not a folder/Project) and select "Options"
- Under Run > Configurations, create a new configuration
- Double click the new configuration. Check
FormBuilder.API
andFormBuilder.Web
Run configurations have not been tested on Linux, but they should be similar to MacOS. Let us know if you are completing this exercise on a Linux machine and we will help you get set up.
- .NET Core 2.0
- Entity Framework Core - .NET ORM Tool
- NpgSQL for EF Core - PostgreSQL extension for EF
- Angular 1.6 - Web Client Javascript Library
Based on original work by Baris Ceviz.