This is the source code for the Adiscount app. It contains both client and back code.
- Clone the project
$> git clone https://github.com/Thegitway/Adiscount.git
- Go in the project
$> cd Adiscount
you will find in (Adiscount\db\MariaDbContext.cs) the user and password for the database
- Exec the following commands to run the project
$> dotnet run
the api will listening to port 5000:80 or 5003:443 ssl
for exemple to make a call https://localhost:5000/api/client you will get all client in the DB
Deployments are handled by [Docker] i user docker-compose to generate both container for mariadb and (api+react)
- Exec this command:
- to generate a deployment folder named
out
$> dotnet publish -o out
- now you should create an image and also containers from the docker-compose.yaml file
Docker Desktop must be launched
$> docker-compose up