#how to set up an existing website to accept API call? (jsx)

27 messages · Page 1 of 1 (latest)

shadow whale
#

That will depend what you use in the backend of the website. You use any npm packages? Epxress or something similar?

granite lark
#

Nope

#

The website (mine) is just front end

shadow whale
granite lark
#

I will reply Home as im away atm. Will resume in 1 hour

granite lark
#

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

shadow whale
granite lark
#

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

shadow whale
#

Make sense. With a backend now you will be able to

granite lark
#

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?

shadow whale
#

Yes. What do you use for the backend ? Lang and technology?

granite lark
#

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

shadow whale
#

Your choice. I cannot really help more without knowing what you want to use

granite lark
#

I will consider JavaScript for now

#

also what do you mean with "technology" ?

shadow whale
#

The technology you will use to make the backend. For example, in javascript, expressjs is a popular package to make webservers

granite lark
#

Is it a pain to learn in comparison to other packages?

shadow whale
#

Expressjs is quite simple

granite lark
#

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)

shadow whale
#

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

granite lark
#

Will check Contabo out, although I know some of their Prices and its actually considerable