❔ Newbie question- dotNET Core API with layered architecture with AngularJS as Frontend
I am creating an application using .NET Core with layered architecture, I have a asked to seperate Model(Entities), API, Context and Web layers AngularJS for frontend. I have created an API using N-Tier architecture before but it was so basic and there was no frontend. I am struggling to create project structure. I have created Bussiness, Data, Entities and API layers but I will need to have users upload files when registering etc. I don't know where I can keep files locally normally in a Node.js app I have two folders for backend and frontend and keep files at backend uploads folder how should I structure this project?
2 Replies
There's a few things going on here. Architecture aside, for now lets tackle file storage. You are allowing users to upload files, but you're not sure where to store them?
The answer to this depends on what your infrastructure and hosting environment is like, as well as the expectations you set for your users. Are they able to download files they upload? Are files discarded after X number of minutes? Are you behind a load balancer in a highly available hosting environment?
If you're just running on a virtual machine, with zero horizontal scaling, you could save the files just about anywhere that makes sense to you... I'm not sure if theres a golden rule about this... It really depends on your use case and environment.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.