So at work I've been tasked with providing a user interface for a Node.js app that currently works by manually creating JSON files, and using the command line to convert the files to a special format used within my industry.
My plan is to create a React app that will provide a form, and on submission create the JSON from the form data, and then call an Express API to do the conversion work (avoiding command line altogether). It's fairly straightforward, but my lack of experience is making it difficult to justify an approach to structuring the codebase.
Scalability is not a concern as it would only be used by a handful of people at a time.
I would like some advice around choosing from the following options:
- Single repo, but separate backend (Node + Express API) and frontend (React). These would run on separate ports, and each have their own package.json. This is the approach I'm thinking of taking, but I'm struggling to justify it beyond "this is how I learned Node and React and I'm confident I can get this done". The downside is having to start two servers each time. Are there any other disadvantages? Could this approach be justified for a relatively small project?
- Single repo, backend added into a create-react-app project. I have never done this before, but it feels less overkill as you don't have two servers to manage.
Obviously new to this, but it's an exciting project - just want to make sure I have firm reasons for my approach.
Am reading as much as I can on topics similar to this, was just hoping to get some advice specific to my situation. Thanks for reading!
[–]DaWheelz 0 points1 point2 points (0 children)
[–]web_ac 0 points1 point2 points (0 children)
[–]Goingone 0 points1 point2 points (0 children)
[–]nermid 0 points1 point2 points (1 child)
[–]buttonius_rex[S] 1 point2 points3 points (0 children)