r/FullStack • u/chrismeep51 • Nov 29 '21
Architectural concerns for a Full Stack WebApp - ReactJS/NextJS, Express, SQLDatabase
Hi folks,
I am working at a small Software & IT Consulting company and have developed some applications with ReactJS so far. Until this point we have often been collaborating through teams or other partner companies which were responsible for the backend. At our company I am kind of the guy pushing things forward and introducing new tech, methodologies and mindset to the engineering team, but I simply cannot know everything which is why I wanted to reach out to you guys for some questions I have regarding my next project.
Hard facts about the project:
- Web Application with ReactJS in the Frontend
- Need an API to communicate (read and write actions) with a Database
- Single Sign on via LDAP (app. 40 to 60 users)
As the majority of my work experience in the frontend I wanted to ask what you guys would recommend in terms of tech stack, architecture etc and a short "Step by Step Guide" on how to combine these technologies together. Here is what I thought about:
Tailwind CSS and ReactJS (maybe with Next.js) for the Frontend
ExpressJS (I have created one simple demo API for myself, other than that I have no experience with it)
Prisma for Database communication (if it will be SQL Server, do you have any recommendations on npm packages for dealing with OracleDB?)
I have found the npm package "activedirectory" which I think could suit my needs for SSO
If you need any more info just let me know, either directly in the post or via dm. Also if anybody knows or has a github repo with this type setup I am grateful if you could link it so I can have a look on how to set up an app like this. I am very excited for this project and want to make the most out of it - in terms of the webapp itself as well as experience for myself.
Thanks in advance,
Cheers
4
u/lhr0909 Nov 30 '21
I would recommend using NextJS with their API routes which you can get away with having a single code base. They now have proper middleware’s so it is easy to set up more complex endpoints. Look into their Prisma integration example and that should be all you need