Oppskrift / oppskrift_api

0 stars 0 forks source link

Feat/basic app #7

Closed Scttpr closed 3 years ago

Scttpr commented 3 years ago

Checklist

Current proposal for architecture is such as :

# I prefer to use old syntax for modules with mod.rs
src
├── api
│  ├── mod.rs
│  ├── recipes_controller.rs
│  └── users_controller.rs
├── entities
│  ├── mod.rs
│  └── user
│     ├── mod.rs
│     ├── user_model.rs
│     └── user_schema.rs
├── lib
│  ├── activity_pub
│  │  └── mod.rs
│  └── mod.rs
├── middlewares
│  ├── check_rights.rs
│  └── mod.rs
├── services
│  ├── auth
│  │  └── mod.rs
│  ├── database
│  │  └── mod.rs
│  └── mod.rs
├── tools
   └── mod.rs
├── main.rs
└── router.rs

Where :

Djyp commented 3 years ago

I just need to make sure the models in diesel can be put wherever we'd like

Scttpr commented 3 years ago

I just need to make sure the models in diesel can be put wherever we'd like

I have not seen any constraint but I'm not sure

Djyp commented 3 years ago

It's all good !

I'd like to have this architecture with .env files where the .env is a commited file and we .gitignore a .env.local that overrides some variables. It's what we do in Symfony and it is way better because you don't need to create a .env from the .env.dist, it's already there, you just need to customize vars with a .env.local when needed.

Djyp commented 3 years ago

Shall we delete the branch @Scttpr ?

Scttpr commented 3 years ago

Yep always after merge I think