Foods_Restaurant

This project for creating a restaurant management system to enable customers to order food online and get delivered for them.
Foods Restaurant where yours would be able to place an order using a credit card and admin would manage order placed all the way till it is picked up.

Features

  • Full CURD Operations for admininstarator for contorl his system
  • Build with asp.net core 3.1, EntityFramework core with code first approch, jQuery, Bootstrap 4, AJAX
  • Including alot of functionalities Areas like Customer, Admin, Identity
  • Using Third parts like Stripe payment gateway for credit cards and SendGrid gateway for sending emails
  • Using very nice javascript plugins Like Datatable.js, timepicker.js, toastr, sweetalert.js, fontawesome

How to run it

  • Download and install dotnet core 3.1
  • Clone the repository
  • Fill the following information with your custom account configurations for third party
    • In Startup.cs file
      • Put your Facebook app authentication keys in
              services.AddAuthentication().AddFacebook(facebookOptions => 
              {
                  facebookOptions.AppId = "xxxxxxxxx";
                  facebookOptions.AppSecret = "xxxxxxxxxxxxxxxxx";
              });
      • Put your Google app authentication keys in
              services.AddAuthentication().AddGoogle(googleOptions =>
              {
                  googleOptions.ClientId = "xxxxxxxxxxxxxxx";
                  googleOptions.ClientSecret = "xxxxxxxxxxxxxxx";
              });
    • In appsettings.json file
      • Put your Stripe test or live mode secret keys
          "Stripe": {
             "SecretKey": "sk_test_xxxxxxxxxxxxxxxxxxxxxxxxx",
             "PublishableKey": "pk_test_xxxxxxxxxxxxxxxxxxx"
           },
      • Put your SendGride App key for sending emails
          "SendGridKey": "xxxxxxxxxxxxxxxxxxxxxxxx"
  • Ensure that you download and install SQL Server, in addition for the correct ConnectionStrings section in appsettings.json file
  • Migrate the database with entityframework and seed data by running the following command in direcotry repository
     $ dotnet ef database update 
  • in the repository directory run this code open terminal/cmd and run this command
    $ dotnet build
    $ dotnet run

Demo