Swapify
Web based application enabling students of University of Zilina to exchange course time blocks.
Prerequirements
- Docker
- Visual Studio
- ASP.NET 5
- Visual Studio Code
- Node.js
- NPM
Install Visual Studio Code Extensions
Built With
- Docker - Container technology for packaging application together with it's dependencies
- ASP .NET Core - Cross-platform framework for building modern web apps
- React - JavaScript library for building user interfaces
- React Slingshot - Boilerplate for React + Redux development
How to run application
Using Docker
- Clone repository
- Open solution using Visual Studio
- Run project docker-compose
- If you change FE, it docker image needs to be build using command "docker build -t react -f ./WebApp/Dockerfile ."
Old approach
-- Backend --
- Clone repository
- Open solution using Visual studio (Swapify.sln)
- Set startup project to WebAPI
- Make sure you use WebAPI debug profile
- Run project (Backend should launch)
-- Frontend --
- Open command line (Preferably in Admin mode to make sure everything works right)
- Go to the folder where your swapify project is stored
- Go to the WebApp folder
- write: npm install
- write: npm start
After these steps, the application should launch in your browser.
If you get error that npm start can't launch then try this solution: https://stackoverflow.com/questions/45499656/error-occured-when-executing-command-npm-run-serve
How to open Swagger documentation
- Swagger UI is located on URL: :/swagger for example localhost/swagger or localhost:5020/swagger
- Swagger JSON file is located on URL /swagger/v1/swagger.json