Skip to content

POPPER-team/POPPER_Server

Repository files navigation

POPPER_Server

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!!!

Requirements

install docker / docker desktop and docker-compose

recommend rider for development

find appsettings.json and .env files in shared onedrive folder named POPPER


Setup the environment

docker-compose up

for removing the environment

docker-compose down

GIT cheat sheet


basic command for checking information about the branch you are on

git status

Adding code

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)


resolving conflicts

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


Files Descriptions

  • 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

AutoMapper

used for mapping models to dtos and other mappings. Create mapping model in MapperProfile.cs

About

Backend aplication for project POPPER

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •