Getting Started

Here’s what you need to know to get up and running quickly with your own project.

Prerequisites

Installation

Get the newest RoverCore template on nuget.org.

dotnet new --install RoverCore.Template

Setup

To create a new project create a directory and open a command line console (cmd). Change the directory to your working folder with the following command (assuming your working folder is c:\users\username\documents\)

cd c:\users\username\documents\

Then to create your project, type in the following command to generate a brand new solution with a name of your choosing. For this example I am using the name RoverDemo.

dotnet new rovercore -o RoverDemo

Give it a few moments. A new folder called RoverDemo will be created for you at c:\users\username\documents\roverdemo\

Try it out!

The RoverDemo folder that was created will have all of the files and folders you will need to run your own starter project.

Here’s what you need to get your project running:

  • Open the Solution in Visual Studio 2022
  • Initialize the SQL Server Express LocalDB
    • In Visual Studio, go to View > Other Windows > Package Manager Console
    • Set the default project in the Package Manager Console to the Infrastructure project
    • In the console that appears at the bottom, type the command Update-Database and wait for the migration to finish.
  • Run the project
    • Press Control + F5 to run the project without the debugger, or F5 to run the project with the debugger attached.
  • Seed Data
    • When running the project for the first time, the database will be seeded with an admin user.
    • You can log in to this account with the username admin and the password Password123!. It is highly recommended that you change this password after logging in for the first time.

Example Page

A short lead description about this content page. It can be bold or italic and can be split over multiple paragraphs.

Last modified March 13, 2022: Added the entire seeder code (f8c545e)