Coder Social home page Coder Social logo

kottoization / vacationey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sewcio543/vacationey

0.0 0.0 0.0 20.75 MB

MVC based .NET fullstack web app

JavaScript 4.34% Python 0.91% C# 49.17% CSS 15.25% HTML 30.33%
fullstack mvc mvc-pattern webapp

vacationey's Introduction

Vacationey

Fictional company Vacationey is a travel agency. This project is a user-friendly webpage providing functionality for this brand. Potential client can search for the perfect offer in a desired location.

image

Backend

Technologies

  • Visual Studio 2022
  • .NET 6.0
  • Entity Framework Core

Instalation

Install necessary packages, they can be found in Dependencies -> Packages in project structure Use Tools -> NuGet Package Manager -> Manage Nuget Packages for Solution

Database

  • SQLITE

Provide correct connection string in appsettings.json file, add:

"ConnectionStrings": {
    "SL-Connection": "Data Source=database.db;"
}

and adjust Program.cs, providing adequate DbContext options:

builder.Services.AddDbContext<DatabaseContext>(options => options.UseSqlite(builder.Configuration.GetConnectionString("SL-Connection")));

In Visual Studio Run Tools -> NuGet Package Manager -> Package Manager Console and type:

  • enable-migartions
  • add-migration test_migration
  • update-database

You can also use different database provider, adjusting your connection string and builder.Services DbContext options

Entity Framework

Database is created with Code First approach using Entity Framework Core DbContext model has a simple structure - four models with relations one-to-many:

  • Country
  • City
  • Hotel
  • Offer

Run project on your localhost through visual studio and find the best holidays for you

image

Authentication

User has an option to login, register and logout provided by AspNetCore.Identity Views for these actions were modified to enhance user experience Registered user can modify databse - edit, create and delete entities

image

Pages

This action displays offers in databse. Offer page as well as other pages supports filtering and is paginated

image

Filters

Through fiters you can specify your requirements and query databse

image

CRUD

All entities' controllers support CRUD operations - create, read, update, delete

Routing

Webpage has a very intuitive layout, can be easily navigated through with buttons Default routing: /Controller = Home/Action = Index/?id Controllers:

  • Home
  • Offer
  • Hotel
  • City
  • Country

Index action uses parameters for filtering database Edit, Delete, Details views require id of the entity as a parameter ex.:

  • Hotel/Edit/12
  • Offer/Index?countrySearch=Spain&page=1

Frontend


Frontend was build using css and javascript External libraries:

  • JQuery
  • Bootstrap

vacationey's People

Contributors

kottoization avatar anastazjaspolnik avatar sewcio543 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.