Clean up the sample app

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, sqlite

Research direction

Start in sample/Metronome.Sample1: run dotnet build there to list the warnings, then work item by item from the checklist. The namespace rename touches the project files and Program.cs, the connection-string message is in Program.cs, and the nullable Post properties live with the model while the null return is in PostsService. Also delete the committed database.sqlite, add it to .gitignore, rename the lowercase userrole migration class, and leave the // TODO: configure the default client item until NimblePros/Metronome#8 lands; done means a clean build and a database created at startup rather than committed.

Written by the indexing model from the issue text.

Description

sample/Metronome.Sample1 still carries leftovers from the template it was created from.

To do

  • Rename the MetricTesting2 namespace to match the project.
  • Stop committing database.sqlite: create the database on startup or with migrations, and add it to .gitignore.
  • Remove the unused LocalDB DefaultConnection connection string, and fix the error message in Program.cs, which names DefaultConnection but reads SqliteConnection.
  • Fix the build warnings: the nullable Post properties, the null return in PostsService, and the lowercase userrole migration class name.
  • Resolve the // TODO: configure the default client once NimblePros/Metronome#8 is done.
  • Consider adding a minimal API sample without Identity. That's the setup that exposed the missing IHttpContextAccessor registration fixed in NimblePros/Metronome#14.
Dominant language
C#
Stars
26
Forks
0
Avg merge
6h 17m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NimblePros/Metronome

All issues in NimblePros/Metronome

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.