Cocktails World shows cocktail recipes and calculates needed ingredients based on selected cocktails. Built with .NET Core, React, Redux, Bootstrap and hosted in Azure.
- Install Visual Studio 2017 Community 15.8.1 or later with "ASP.NET and web development" workload.
- Install Node.js 10.7 or later.
- Change Visual Studio to use the installed Node.js instead of the bundled-in one. See Update Node Version in Visual Studio 2017.
- Git clone the project. In Visual Studio, Team Explorer -> Clone https://github.com/lauriharpf/cocktails.git . Open Cocktails.sln in Visual Studio.
- Run the application in Debug mode (F5). Cocktails should be shown and the site usable.
- Open Cocktails.sln in Visual Studio.
- Run the app by pressing F5. The .js files can be modified while the app is running and changes are reflected in the browser.
Changes to dependencies in package.json take effect when the file is saved.
- Open a Node.js command prompt.
cd
to the directory containingpackage.json
(Cocktails\ClientApp
)npm test
- Set up an App Service on Azure.
- In Visual Studio, right-click on Cocktails project -> Publish.
- Choose Microsoft Azure App Service. Select your Azure account.
- Publish.