-
Fork this repo
- Click
Forkin the top-right of the page - this will create a copy of this repo in your own GitHub account
- Click
-
Clone (download) the repo
- Go to your newly-created fork of the repo (on GitHub).
- Click
Clone or download(the green button on the right). - Make sure the page says
Clone with SSH(rather thanClone with HTTPS). - Open your git client (e.g. GitKraken) and use this link to clone the repo.
Your trainer will be able to help you with this.
-
"Cloning the repo" will create a folder on your computer with the files from this repo.
Open this folder in VSCode. -
Make sure you've got PostgreSQL and pgAdmin installed. You'll need to set up a user and a database for this project. All instructions for this step are in the
Setting up Postgressection below. -
Open a command-prompt in the project directory (the directory containing
DuckDuckGoose.csproj).
Your trainer can show you how to do this, if you need any help. -
Run
dotnet tool install --global dotnet-efto install thedotnet-eftool if you haven't already -
Run
dotnet ef database updateto run the migrations against the database -
Run
dotnet runto launch the app -
The app should now be available at https://localhost:7151
If you get a security error when running the app, add and trust a self-signed certificate with dotnet dev-certs https --trust.
Before you run the app you will need to make sure you've got PostgreSQL installed and a database set up.
-
Download and install the PostgreSQL server software if you haven't already.
-
Open the Windows Start menu and search for "pgAdmin". When you start "pgAdmin" for the first time, you'll be asked to set a master password.
-
Inside your PostgreSQL server in pgAdmin, right-click on Login/Group Roles and create a new Login/Group Role with the name
duckduckgoose(in the General tab), the passwordduckduckgoose(in the Definition tab) and the ability to log in and create databases (in the Privileges tab). -
Click Save to create the user.
-
Inside your PostgreSQL server in pgAdmin, right-click on Databases and create a new Database with the name
duckduckgooseand the ownerduckduckgoose(both in the General tab). -
Click Save to create the database.