GithubHelp home page GithubHelp logo

restaurant-orders's Introduction

Restaurant Orders

Initial Configuration

Update the appsettings.Development.json or the appsettings.json file(delete the appsettings.Development.json file in that case) to speficy the following values in the Restaurant Orders project:

  • Define the MSSQL database connection string in the Database property under the ConnectionStrings property.
  • Define the Restaurant Owner or Admin name and email address in the properties under the OwnerInfo property.
  • Change the JWT expiration duration in the ExpireInMinutes property under the JWTInfo property if necessary.
  • Change the DefaultPageSize if necessary to alter the default page size used in pagination of data if no pageSize is provided with the request.
  • Change the ServerErrorLogFile property to set the path of server error log if necessary.
  • Create the secrets:
    • Admin Password: dotnet user-secrets set OwnerInfo:Password <password>.
    • JWT Secret: dotnet user-secrets set JWTInfo:Secret <a base64 encoded string>. The base 64 encoded string can be generated from random bytes in "Git Bash" in windows with the command: openssl rand -base64 32.

Database migration

First, navigate to the RestaturantOrder.Data project. Then migrate the database using the command dotnet ef database update -s '../Restaurant Orders/Restaurant Orders.csproj'. If the dotnet-ef tool is not installed, install the tool using the command dotnet tool install --global dotnet-ef.

Run the project

Run the Restaurant Orders project using command: dotnet run. This will create the admin user automatically.

Usages

  • Login as restaurant owner(admin)/customer using the admin email and password(see swagger doc).
  • Register new customers(see swagger doc).
  • Find other API endpoints in swagger doc.

restaurant-orders's People

Contributors

mamun724 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.