![]() So, create a folder called Models, and in there build a Workout class in a file called Workout. ![]() Your application will store data about your workouts, specifically the date of the workout, the distance covered, and the time it took (in seconds). ![]() NET Core, version 2.0 and the Web API template. Start with File > New Project, and choose ASP.NET Core Web Application. ![]() If you’re using something else, you should be able to easily find similar options. For my IDE I am using Visual Studio 2017, so all the screenshots will be from there. Let’s start by building the back end first. The WebSocket standard simplifies much of the complexity around bi-directional web communication and connection management. Today you’ll use ASP.NET Core 2.0 on the server side, and Angular 5 on the client side to build a basic CRUD app to track workouts, specifically jogging! You will create a Backend folder for the ASP.NET Core 2.0 project, and a Frontend folder for the Angular part of the project. For example, if you get a requirement to build a native mobile client later on: it’s easy, you already have the server side in place. This is a good approach because it allows you a ton of flexibility. A lot of applications today are built with an API on the backend, and then a single page application on the front end.
0 Comments
Leave a Reply. |