#how to set up an existing website to accept API call? (jsx)
27 messages · Page 1 of 1 (latest)
What do you mean by, just front end? Like for a website to work, you need a server that will send your website to the requester. What do you use for it?
I will reply Home as im away atm. Will resume in 1 hour
@shadow whale At the moment, the website is a static page hosted by GitHub on pages, but I'm planning on starting, and finishing the API thing while troubleshooting it on my machine, then migrating the whole website or the backend to a VPS or a website hosting platform. I'm not yet sure how I will do some of these things but I will see.
With a static site, you will need to check if github let's you make apis. Normally statics sites doesn't let you do this
I know that GitHub doesn't allow any backend because its, yeah a static page
therefore I will migrate the website somewhere else once I finish the Backend
but I don't even know where to start with the backend
Make sense. With a backend now you will be able to
I did check some guides and "tutorials" of how to proceed, yet its either not helpful or hard to understand
can you do a quick overview of all I need?
Yes. What do you use for the backend ? Lang and technology?
I have an idea of something, and it basically goes like
user sends a json of lets say STRING "abcd"
I want to process it with my C++ project
processed string goes back and is shown
I do know C++, C# and some js but I can't think of what to use for the backend
the project itself is C++ but C++ backend is pain imo
Your choice. I cannot really help more without knowing what you want to use
The technology you will use to make the backend. For example, in javascript, expressjs is a popular package to make webservers
Is it a pain to learn in comparison to other packages?
Expressjs is quite simple
This helped. I did check other guides and there were packages I've never heard about and some I did, which confused me enough
Either ways, off topic but do you know a good service where I could host the website? (since pages does not allow API calls)
I mainly use contabo or ovh for vps. I don't know if there is any good free one. I know ovh prices are a bit higher. There is also hetzner. You should check online for vps and check which one would fit your pricing range
Will check Contabo out, although I know some of their Prices and its actually considerable