r/FullStack • • 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:

  1. Tailwind CSS and ReactJS (maybe with Next.js) for the Frontend

  2. ExpressJS (I have created one simple demo API for myself, other than that I have no experience with it)

  3. Prisma for Database communication (if it will be SQL Server, do you have any recommendations on npm packages for dealing with OracleDB?)

  4. 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

8 Upvotes

5 comments sorted by

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

2

u/chrismeep51 Nov 30 '21

Thanks for advice I will check it out!

1

u/chrismeep51 Nov 30 '21

Do you have any advice on deployment of that NodeJS app on a windows server? I have heard from other devs that it can be a pain in the a$$. Our customer unfortunately wants it on a windows machine. Thx for your help so far.

3

u/lhr0909 Dec 02 '21

If you have Docker experience, I would say definitely do that. WSL could also be a decent option, and even just having NodeJS code base deployed on plain Windows shouldn't be a big problem. It is the dependencies like database etc that could be harder to deploy. So try Docker and WSL until they fail to work on Windows before you try full Windows solution. Cheers and good luck!

1

u/chrismeep51 Dec 02 '21

Thanks for all your advice, gave me some good inpirations and got me closer to a prototype solution! :)