- Prerequisites
- Microsoft Sql Server (Express) : It must have a predefined user (usr: roman / pass: roman in the scope of this project). This user must have enought permisson to create databases. MSQL must have TCP/IP enabled and mapped to the port 1433. Login with sql auth must be enabled.
- Node
- Git (to clone the package)
- Net Core 3.1 SDK
- Installation
- Using the terminal navigate to /HotelsApi
- Install .net entity framework tools
dotnet tool install --global dotnet-ef
- Update appsetings.json -> ConnectionStrings -> HotelsConnection to your database values, server can be updated to "localhost"
- Run
dotnet ef database update
- Fill the database, for this preconfig to work, you must input 3 hotels which MUST have the following image names: image1 | image2 | image3 since its stored as a reference, and those referenced images are available in the current build.
- Run
dotnet build
- Run
dotnet run
. Now the server will be running at localhost:5000 - Navigate to /hotels-front
- Run
npm i
- Run
npm run build
- Serve the build with
serve -s build
- Use the application.