Simple ASP.NET Core CRUD Application

Application Details

Server

  • API built with ASP.Net Core
  • Utilizes Entity Framework Core to define Database Model
  • Equipped with controller for CRUD operations
  • Connects to local Microsoft SQL Server for database management

Client

  • Signup form built with React
  • Utilizes Redux for state management
  • Consumes .Net Core Web API
  • Utilizes Material-UI for component design system
  • Includes form input validation
  • Perform CRUD operations see changes reflected in the database

How to run

Prerequisites

The following tools need to be installed:

  • .NET Core command-line interface
  • Microsoft SQL Server
  • Node.js

Database

Install the dotnet ef command line tool.

dotnet tool install --global dotnet-ef

Initialize database migration.

dotnet ef migration

Update the database.

dotnet ef database update

Server

From the root project directory, navigate to the WebApi folder.

dotnet restore

Restore project dependencies.

dotnet restore

Build the project.

dotnet build

Run the server.

dotnet run

Client

From the root directory, navigate to the client folder.

cd client

Install dependencies.

npm i

Run the client on localhost:3000.

yarn start

or

npm run start