Skip to content

batrand/books-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Books SPA

Interview take home project for 1Breadcrumb

Requirements

I have implemented the API specified at the 1breadcrumb swagger document, and an additional delete API.

I have started implementing the Angular client, but considering the time it will take to learn REST integration will be quite long after the interview, I'm submitting now with only the backend API.

Run notes

The backend uses EF Core SQLite. Even though it's against best practices, for ease of access, I have included a copy of the DB in the repo; it's not too big. Therefore, you should be able to just run the backend and have a functioning API straight away.

In the event you want to generate a fresh DB, you can delete the db.sqlite* files and run the following commands:

  • dotnet tool install -g dotnet-ef to install EF Core Tools
  • cd books-spa\BooksSpa\BooksSpa.Api
  • dotnet ef database update

Error handling

The API spec did not specify what type to return in case of errors. I've added the type ErrorResponse to accomodate for that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages