I feel like a bit of a nonse to be honest at the moment. I'm trying to build an application on github but I now want to start trying to tie in the backend. I suppose what I'm struggling is trying to get the architecture right in my mind so I know what i'm doing 100%.
When building a full stack application, I've seen some people creating the static version of the frontend and then tieing it into the backend and I suppose its confusing me a little bit. If you think of wordpress, you have the front, and then the backend admin area.
Anyone able to understand where I might be coming from?
Anyone able to advise, maybe on a workflow possibly to look into? Any information much appreciated!
Kind Regards,
Bridget
I went there but I was able to find myself so I am merging the stack like this: bootstrap-mysql; AngularJS-php; AngularJS-firebase; nodejs-firebase-bootstrap; vuesjs-firebase; symfony-mysql; DENR; react-firebase. . .
try to follow the best youtubers like Traversy Media
What are you using for your front-end? You could build your front-end as a static files and put them on Netlify of Firebase or AWS or where ever you want. Then, you could communicate with your back-end via REST endpoints where this code could live separately from your front-end.
Hi Bridget,
You need to ask yourself a question
Q: Does your application require a database? (SQL, MongoDB, etc)
A: If you answered yes, then you need to build yourself a backend using NodeJS, Python or some other language that will allow you to Create, Read, Update and Delete ( CRUD ).
A: If you answered no, then this is great! You can choose your favourite Front End language (React, Vue, Angular, etc) and create a single page app and serve a static website.
Each of the languages I mentioned above have the ability to be served by a web server, statically. What this means is that you just need to point your server at an entrypoint (Almost always index.html) and your site will be operational.
What I Recommend
Assuming your site does not use a database.
React - create-react-app
VueJS - Vue-Cli
I recommend you pick on of the two languages above, and use the service that I've linked for you to generate yourself a project. Within the tools that I've linked, there is a handy command.
npm run buildis what it usually is. This will create for you a/distfolder, with anindex.htmlinside of it. That/distfolder is all that you need to "deploy" to your web server, no database, no backend, no hassle.If your website / app is more complicated than this, there are some nice shortcuts that I like to use, to avoid getting into the hassle of making a backend and a database to support your app.
I am not sure what your knowledge level of these terms and suggestions I made are, but if you have any questions, don't hesitate to reach out to me with a DM if you liked the approach that I've suggested.