Git Product home page Git Product logo

sanjaysaini2000 / javascript-aspnetcore3-webapi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 15 KB

This Javascript frontend is developed with bootstrap to demonstrate crud operations of BookStore Web API that was written in asp.net core 3.1 using Entity Framework Core 3.1 with Sql Server as backend.

C# 37.34% CSS 14.06% HTML 30.42% JavaScript 16.74% Dockerfile 1.43%
javascript bootstrap aspnet-core aspnet-web-api html entity-framework-core sql-server sanjaysaini2000

javascript-aspnetcore3-webapi's Introduction

Javascript Front-end to BookStore Web API

This Javascript frontend is developed with bootstrap to demonstrate crud operations of BookStore Web API that was written in asp.net core 3.1 using Entity Framework Core 3.1 with Sql Server as backend.

Prerequisites

  • In order to run this app, you need .Net Core SDK that includes .Net CLI tools and .Net Core Runtime installed on our machine. So download and install the latest version of .Net Core SDK available from this link.

  • Postman which a famous API Client tool used in testing web API by sending web requests and inspecting response from the API. So download and install Postman for free from this link.

  • And last, we need to have SQL Server installed on the machine. In case you already have Visual Studio 2015 or later installed then SQL Server Express edition will already be installed along with the Visual Studio. Otherwise download and install latest SQL Server Express edition free from this link.

Getting Started

Clone or Download the zip file of this repository.

Entity Framework Core tools

Also you will require Entity Framework Core tools that includes “dotnet ef” tool and the EF designer installed in order to create EF Migrations.

So open the command window in the folder where you have cloned or unzipped the repository. Now run following commands.

dotnet tool install --global dotnet-ef

Pre-run Ckeck

Check if your local sql server name is "(localdb)\mssqllocaldb" than you dont have do anything otherwise goto ConfigureServices method in Startup.cs and change the sql server appropriately.

Our Web API will listening at HTTPS so we need to create and trust the development certificate so that web API hosts securely on local development server when we run the project.

So run following command and click on the yes button on the Security Warning dialog window.

dotnet dev-certs https --trust

Running the App

Run the following command to run the app in the command window.

dotnet run

Now navigate to http://localhost:5000 to launch the application in browser.

Check out my article on how to create this app.

Docker Support

Docker image of this API is available at my docker Hub registory. You can pull the image from javascript-aspnetcorewebapi repository.

Built With

javascript-aspnetcore3-webapi's People

Contributors

sanjaysaini2000 avatar

Watchers

 avatar  avatar

Forkers

pravesh805

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.