Skip to content

SashaBeetle/Zhuk.University.Tachka

Repository files navigation

Project for 'Web Technology' course in Lviv National University of Ivan Franko

Contacts:

Stack

  • .NET - free, open-source, cross-platform framework for building modern apps and powerful cloud services.
  • Azure - cloud computing platform and a set of services provided by Microsoft for building, deploying, and managing applications and services through Microsoft-managed data centers.
  • MS SQL Server - relational database management system (RDBMS) developed by Microsoft that uses SQL (Structured Query Language) to manage and manipulate data, including storing, querying, and retrieving data.
  • Entity Framework - object-relational mapping (ORM) framework for .NET developers that enables them to work with databases using .NET objects, simplifying the process of data access and manipulation.
  • MSTest - unit testing framework for .NET developers that allows them to write and execute automated tests to ensure the correctness and reliability of their code.
  • App Service - set of cloud-based services provided by Microsoft that enable developers and businesses to build, deploy, and manage applications and services in the cloud, including computing, storage, networking, databases, analytics, and more.
  • NuGet packages - type of software package used in the Microsoft .NET ecosystem, containing compiled code and other resources, and are used by developers to easily add functionality to their projects and share code between teams.
  • Razor Pages - Razor Pages can make coding page-focused scenarios easier and more productive than using controllers and views.
  • Bootstrap - Build fast, responsive sites.

How to run project

Open your system terminal and run commands:

git clone https://github.com/SashaBeetle/Zhuk.University.Tachka.git
cd Zhuk.University.Tachka

Add your already deployed database connection string to files: In SashaBeetle/Zhuk.University.Tachka.Database/TachkaDbContext.cs method OnConfiguring(DbContextOptionsBuilder options) add line of code which below. Instead of ConnectionString add your database connection string. Line of code: options.UseSqlServer("ConnectionString");. Method should look like that:

protected override void OnConfiguring(DbContextOptionsBuilder options)
{
  options.UseLazyLoadingProxies();
  options.UseSqlServer("ConnectionString");
}

In SashaBeetle/Zhuk.University.Web/appsettings.json in "ConnectionStrings" add line: "NetworkConnection": "ConnectionString". Instead of ConnectionString add your database connection string. Code shluld look like this:

  "ConnectionStrings": {
    "NetworkConnection": "ConnectionString"
  }

Than (if you have App Services) add line of your connection string to application insights. Code in SashaBeetle/Zhuk.University.Web/appsettings.json should look something like that, but also instead of ConnectionString should be yours.

  "ApplicationInsights": {
    "LogLevel": {
      "Default": "Information"
    },
    "ConnectionString": "ConnectionString"
  },

Decomposition of tasks

1. Frontend

  • ✅ Display Database
  • ✅/🔳 Display API
  • ✅ Display User register and login
  • ✅ Display User profile
  • 🔳 Display beautiful main page
  • 🔳 Create beautiful site design

2. Database

  • ✅ Create Database
  • ✅ Connect Database
  • ✅ Connect ORM Entity
  • ✅ Create Schemas for objects

3. API

  • 🔳/✅ User Avatar API
  • 🔳 User Avatar API Controller
  • ✅ User Location API
  • ✅ User Location API Controller

4. Authorization

  • ✅ Create Login and Register Pages
  • ✅ Create Controller
  • ✅ Create Service
  • ✅ Create Models

5. Order

  • ✅ Controllers
  • ✅ Inividual Pages
  • ✅ Features
  • ✅ Tracker

6. Suggestion(Algorithm)

  • ✅ Page
  • ✅ Controller
  • ✅ Filter

7. Loggs

  • ✅ Add logs for Authorization
  • ✅ Add logs for Orders
  • ✅ Add logs for User Profile

8. Test

  • ✅ Test DataBase
  • ✅ Test Cars
  • ✅ Test Loggs

9. Azure

  • ✅ Deploy the project
  • ✅ Connect Application Insights
  • ✅ Connect Azure Database
  • ✅ CI/CD

10. Git

  • ✅ Add README on GIT
  • ✅ CI/CD

Diagrams of the project