Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhatthaiquang-agilityio/dotnet5-webapi-react

React and Web API using .NET 5
https://github.com/nhatthaiquang-agilityio/dotnet5-webapi-react

ef-core hooks net5 postgresql react swagger-ui

Last synced: 19 days ago
JSON representation

React and Web API using .NET 5

Awesome Lists containing this project

README

        

# .NET5 WebAPI and React
Frontend React and Web API using .NET 5
Create example: Learn React, Hooks and RxJs

## TODO:
+ Create services call APIs
+ Move baseURL in Environment

## React
+ Run development
```
cd client-app
npm start
```
+ Run build
```
cd client-app
npm build
```

## .NET 5 Web API
### Migration database in Postgres
+ Create migration

```
dotnet ef migrations add InitialCreate
```

+ Apply Migration
```
dotnet ef migrations script
```

### Swagger UI
```
https://localhost:44374/swagger/index.html
```

## Reference
+ [Fetch data in React](https://www.freecodecamp.org/news/fetch-data-react/)
+ [Fetch data from an API](https://designcode.io/react-hooks-handbook-fetch-data-from-an-api)
+ [How to write cleaner React code](https://www.freecodecamp.org/news/how-to-write-cleaner-react-code/)
+ [Dynamic imports and code splitting](https://blog.logrocket.com/speed-up-react-app-dynamic-imports-route-centric-code-splitting/)