This is the repository of a modular monolith for the fictitious application "StreamFlow" from the subject "Arquitectura de Sistemas" at the Universidad Católica del Norte. All the necessary tools and commands to run the project are described below.
- .NET SDK (version 9.0.4)
- MySQL (version 8.0.29)
- PostgreSQL (version 15.6.0)
- MariaDB (version 10.7.4)
- MongoDB (version 5.0.3)
- Git (version 2.49.0)
- Clone the repository
git clone https://github.com/NachoXx25/Monolito-Modular.git
- Navigate to the project directory
cd Monolito-Modular
- Restore project dependencies
dotnet restore
- Create a
.env
file on the root of the project and fill the environment variables
cp .env.example .env
In the .env
file, replace:
your_jwt_secret_key
with your JWT secret keyyour_db
with the name of each database (except for MongoDB)your_user
,your_password
with the credentials for each databasemysql_port
,mariadb_port
,postgresql_port
,mongodb_port
with the port for each databaseyour_mongodb_db_name
with your MongoDB database name
Once you have replaced everything, save the changes and move on to the next step.
- Run the project
dotnet run
The server will start on port 5024 and the seeders will be created automatically. Access the API via http://localhost:5024.
As mentioned in the previous section, the seeders are loaded automatically with the dotnet run
command.
The seeder contains:
- 152 users (150 randomly generated and 2 identified users, administrator and customer respectively). This data will be added to the Auth, User and Bill contexts.
- 350 bills
- 451 videos (450 randomly generated and 1 identified test video)