But you have never touched the modern .NET family tech stack.
This tutorial will guide you, step-by-step, in building a modern single page application (SPA) that will take advantage of Vue.js for the front-end and .NET Core (C#) for the back-end.
We will also see how to write some tests, both unit and integration, to cover the front and and back end functionality (at least partially).
If you want to skip the reading, here 💁 is the GitHub repository with a detailed README 🙌.
🧑💻 We will build a web app where users can signup/login and just tell us how much they love pizzas, by pressing an "I love it" button.
There are no restrictions on the number of times each user can show us their appreciation. The only requirement is that only logged in users can vote.
On the home page, along with the signup/login buttons, we will put a little bar-chart, displaying the top X users with the highest appreciation (on the X-axis) and the number of votes on the Y-axis.
Let's start with the front end. It makes more sense to build the visible parts of our app first. We will build our front end with one of the most famous front-end libraries on the market: Vue.js.
In order to install and configure our initial front end setup with Vue.js, we will use the Vue CLI. This is a standard command-line tool for developing Vue.js applications.
To install it, use the following command. Note that all commands in this tutorial use NPM, which you need to have installed on your machine in order to follow along.
npm i -g @vue/cli
After successfully installing the Vue CLI, we should be able to start using it to install and configure Vue.js itself. Let's do with the following process.
Step 1: Create a new empty project directory and open it with the following commands:
mkdir pizza-app cd pizza-app