Skip to content

Instantly share code, notes, and snippets.

@karissademi
Last active June 1, 2020 13:49
Show Gist options
  • Save karissademi/7f6d666540d4c0aa971243ee243bc432 to your computer and use it in GitHub Desktop.
Save karissademi/7f6d666540d4c0aa971243ee243bc432 to your computer and use it in GitHub Desktop.
Good and less good getting started examples

Less good example

Getting Started

  1. Installation process
    • Install database on local machine. - How and where would I get the database?
    • Clone or download repository to local machine folder. - Show command. E.g. git clone {repo url}
    • Create database and schema from the root of the local folder by running command "dotnet ef database update" - Use backticks (`) in markdown to format the commands to run
    • From the root of the local folder run command "dotnet run" on command prompt
  2. Software dependencies/pre-requisites - This section should come first

Build and Test

* To build the application use "dotnet build" - **More description needed here**
* To run unit tests for the application use "dotnet test"

Better example

Getting started

Dependences

Installing

  1. Clone this repo to your local machine git clone
  2. Download and install a local copy of the database. See phila.city for information on how to access this project's AWS infastructure.
  3. cd into the folder you just cloned and run dotnet ef database update to create the database and schema.
  4. Use dotnet run to run the application locally.

Tests

Run dotnet test to run local tests

Deployment

Use dotnet build to build the application for deployment.

To deploy to the test environment, merge a pull request into the master branch.

To promote a build to production, rebase your production branch against the latest master. Deployment uses GitHub actions, so make sure to keep an eye on it to confirm the deployment is successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment