Backend application for project POPPER
!!! do not push to dev or main branch directly!!! create a new branch and create a pull request to dev branch!!!
install docker / docker desktop and docker-compose
recommend rider for development
find appsettings.json and .env files in shared onedrive folder named POPPER
docker-compose up
for removing the environment
docker-compose down
basic command for checking information about the branch you are on
git status
create a new branch where branch_name is the name of the branch
git checkout -b branch_name
make changes to the code and stage those changes
git add .
commit the changes where commit message is the message for the commit
git commit -m "commit message"
use for staging and committing in one command
git commit -am "commit message"
setup the remote repository where branch_name is the name of the branch
git push --set-upstream POPPER_Server branch_name
push the changes to the remote repository
git push
crate a pull request on the github page and add the reviewers (For now only fran)
fetch the changes from the remote repository
git fetch
merge the changes from the remote repository
git merge origin/branch_name
resolve the conflicts in the code then commit and push
- Dtos
- classes for file transfer
- Models
- Database model
- be careful when adding new model not to overwrite the existing context and connection string
- Controllers
- Api endpoints / controllers
- Reduce logic to minimum always try to call on services
- Services
- Work logic
- Always implements same name interface
- Add in Program.cs scoped service
- Helpers
- General functions
used for mapping models to dtos and other mappings. Create mapping model in MapperProfile.cs