Giter VIP home page Giter VIP logo

foodie-api's Introduction

ASPNET CORE - Foodie API

This is a personal project, cloning the flow of the IFood app. With the purpose of studying and practicing some .NET skills, SOLID and Clean Code development topics. Reminder: this is just the API, the mobile app is in this location: FooodieApp

Badges

MIT License

This project uses

  • Entity Framework;
  • Fluent Mapping;
  • JWT Authentication;
  • Serilog;
  • xUnit;
  • Github Actions

Cloning and starting the project with Docker Compose

Clone the project with SSH

  git clone [email protected]:miguelpombodev/Foodie-API.git

or clone with HTTP

  git clone https://github.com/miguelpombodev/Foodie-API.git

Go to the directory

  cd Foodie-API

In the appsettings.Development.json file is set up to use the values of the Docker Compose yaml file:

  "MainDatabase": "Server=foodie_db,1433;Database=Foodie_DB;User ID=sa;Password='123456QWERT@#';TrustServerCertificate=true"

If you want to use a standalone container, created just with a

  docker run

you need to change the "foodie_db" to localhost, and the credentials that you have chosen.

Then if you choose to use Docker Compose, now just run:

  docker-compose up

After the database configuration, you need to run the structural script: Database Structural Script ๐Ÿ˜„

With StandAlones

Another way is to use a standalone container, to use it, just build your own SQL Server Container in this way:

  docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<STRONG_PASSWORD>" -p 1433:1433 -d --name <CONTAINER_NAME> mcr.microsoft.com/mssql/server:2022-latest

And then check if it is started, with the command:

  docker ps 

Now you can build and start the project with:

  dotnet build && dotnet run ./Foddie-API.Web/Foddie-API.Web.csproj

License

MIT

foodie-api's People

Contributors

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