/ChurrasApp

ASP.NET Core Api with React.js client

Primary LanguageC#

CHURRAS APP

SERVER

Project structure

Churras.Server
|-- Churras.Api
|-- Churras.Domain
|-- Churras.Repository
`-- Churras.Test

Build setup

# install dependencies
dotnet restore

# run api app
dotnet run

ASP.NET Core 2.0 API made with:

  • EntityFramework 6
  • SQLite / InMemory databases
  • FluentValidation
  • Swashbuckle
  • XUnit

Error messages

{
  "message": "string",
  "developerMessage": "string",
  "errors": [
    {
      "type": 0,
      "field": "string",
      "message": "string"
    }
  ]
}

X-Pagination Header

{
  "totalCount": 20,
  "pageSize": 10,
  "currentPage": 2,
  "totalPages": 2,
  "previousPageLink": "http://localhost:5000/api/barbecues?page=1",
  "nextPageLink": null
}

Swagger doc example

Imgur

DEMO

https://churrasapi.azurewebsites.net/swagger

CLIENT

TODO Churras Web Project

Build Setup

# install dependencies
yarn add

# serve with hot reload
yarn start

# build for production with minification
yarn run build

# run unit tests
yarn run test

# run e2e tests
yarn run cypress:open