Task Track Project
Distribution 📦
The application is composed by three parts: Database, Api and Console (User Interface).
In order to execute the full application, required steps are explained below.
MongoDB 🍃
The DataBase chosen for the project is MongoDB, a non-relational base, stored locally in this case.
To initialize the application, the database creation is the first step.
First step! Install MongoDB Community Server.
Then, install MongoDB Compass Desktop app in order to create the local DataBase.
Once installed both:
I. Create the base with the following data:
Name: TaskTrackProject
ConnectionString: mongodb://localhost:27017
II. Finally, create the database as below:
Database Name: tasktrack-db
Collection Name: Task
Api and Console 🧠
Info.:
end: Refers to the application ends, Back or Front end;
Both ends are developed as .NET projects, a webapi and a console. By downloading the following .zip file, the executables for each end will be available within their respective folder, that also contains important dependencies for complete performance (such as appsettings.json).
Unzip the folder and execute each end separately, being API and then Console, to avoid issues.
To Watch Out ‼️
I. The Database Connection URI, Database Name and Collection Name are hardcoded into the appsettings.json file. Therefore, it is important to follow the MongoDB configuration section above for correct funcioning.
II. The Console depends on the API, which depends on the Database. Assure the correct Database connection through Mongo before running the Api executable file. Once both are up and working, run the Console executable file.
III. Each end comes in a folder, containing other files beyond the .exe (such as .pdb, .json...). This means that, though the .exe is the only to be executed, all files present are important and should not be removed.
IV. Stopping any of the ends will not interfer in the data storage, which is locally kept by MongoDB. The connection with the Database can also be ended with no further problems. However, deleting the Database or the Collection will in fact destroy the data kept.