Coder Social home page Coder Social logo

hairsalon.solution's Introduction

HairSalon.Solution

By Jeremy Banka

Technologies Used

  • ๐ŸŽต C# / .NET 5 Framework
  • ๐ŸŽ›๏ธ ASP.NET Core Server
  • ๐Ÿงฎ MySQL Database
  • ๐Ÿ” Entity Framework Core
  • ๐Ÿช’ Razor Templating
  • ๐Ÿ’… SCSS to CSS via Ritwick's Live Sass Compiler
  • ๐Ÿ› ๏ธ Tooling: Omnisharp
  • ๐Ÿ…ฐ๏ธ Fonts: Verdana & Charter by Matthew Carter

Description

This website is an exercise in using Microsoft's Entity Framework Core to abstract the process of reading from and writing to a MySQL database.

Setup/Installation Requirements

  • Get the source code: $ git clone https://github.com/jeremybanka/HairSalon.Solution

  • Set up a compatible database. There are two ways of going about this. I recommend the first.

    1. Import my configuration
      • Find jeremy_banka.sql in the root folder.
      • In MySQL Workbench, find the 'Administration' tab in the upper left of the application.
      • Under that tab, click 'Data Import/Restore'.
      • Select the radio option 'Import from Self-Contained File' and browse to the .sql file located earlier.
      • If you want a few example entries in the database pre-made, pick 'Dump Structure and Data' in the dropdown near the bottom. If you want to see the empty-state first, select 'Dump Structure Only'.
      • Click 'Start Import'.
      • Once complete, go back to the 'Schemas' tab next to administration and refresh using the tiny ๐Ÿ” button.
      • The app won't do this for you.
      • Why would it?
    2. Set it up yourself
      • If you picked this option, I'm gonna assume you know what you're doing.
      • Make a new schema hair_salon.
      • Add two tables clients, stylists.
      • In clients add three columns
        • ClientId: VARCHAR(36) with PK (primary key) and NN (not null) options picked.
        • Name: VARCHAR(45)
        • StylistId: VARCHAR(36) these aren't INTs because I'm using System.Guid.
      • In stylists add two columns
        • StylistId: VARCHAR(36) with PK (primary key) and NN (not null) options picked.
        • Name: VARCHAR(45)
  • Add appsettings.json in HairSalon/ and paste in the following text:

    {
      "ConnectionStrings": {
        "DefaultConnection": "Server=localhost;Port=3306;database=hair_salon;uid=root;pwd=************;"
      }
    }

    except, instead of ************ put your password for MySQL.

  • Compile and run the WebApp as you save changes: $ dotnet watch run in HairSalon/ (This command will also install necessary dependencies.)

Known Bugs

  • none identified

License

Gnu Public License ^3.0

Contact Information

hello at jeremybanka dot com

hairsalon.solution's People

Contributors

jeremybanka avatar

Watchers

James Cloos avatar  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.