Code Monkey home page Code Monkey logo

hiloguessing's Introduction

README - .NET 7 Web API Solution for High-Low Guessing Game with Migration

This is a solution for a Web API developed in .NET 7, designed for a High-Low Guessing Game. The application utilizes Entity Framework Core for database management and includes the configuration and application of migrations to maintain and evolve the database schema.

Aplication on Azure: https://hiloguessingwebapi20231111161433.azurewebsites.net/index.html

Requirements

Make sure to have the following installed on your machine:

Initial Setup

  1. Clone this repository:

    git clone https://github.com/YourUser/YourProject.git
  2. Navigate to the project directory:

    cd YourProject
  3. Restore project dependencies:

    dotnet restore

Database Configuration

Ensure to properly configure the database connection in the appsettings.json file of the startup project (HiLoGuessing.WebAPI, for example).

{
  "ConnectionStrings": {
    "DefaultConnection": "your_connection_string"
  },
  // other settings...
}

Applying Migrations

To create and apply migrations to the database, use the following commands:

dotnet ef migrations add MigrationName --project HiloGuessing.Data --startup-project HiLoGuessing.WebAPI

Replace MigrationName with a meaningful name for the migration.

Then, run the following command to apply the migration to the database:

dotnet ef database update --project HiloGuessing.Data --startup-project HiLoGuessing.WebAPI

This command will create or update the database according to the pending migrations.

Running the High-Low Guessing Game Application

Now that the database is configured, you can start the application:

dotnet run --project HiLoGuessing.WebAPI

The application, based on the High-Low Guessing Game, will be accessible at https://localhost:(available port) by default.

Contribution

Feel free to contribute to this project. Open issues to report bugs or request new features.

Enjoy the development!

hiloguessing's People

Contributors

frodoeric avatar

Watchers

 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.