❔ Making my own API
Hi, iv recently started with API's and I'm wondering where I should start my research, experimentation when I want to setup an own API to my own domain / website.
I'm currently using Swagger to make my API, and the API link then becomes "https://localhost:7176/WeatherForecast?x=12" But i want it to instead be "https://mydomain.domain/WeatherForecast?x=12". Where do I start?
9 Replies
You start by renting a server
$vps
Cheap recommendations
https://www.scaleway.com https://www.digitalocean.com
https://www.linode.com https://www.ovh.co.uk
https://www.time4vps.eu https://www.vultr.com
https://www.hetzner.com https://contabo.com
Always free options
https://cloud.google.com/free
https://www.oracle.com/cloud/free/#always-free
Then you need to buy a domain (I recommend Cloudflare Registrar or Namesilo)
Then you set up the DNS of that domain to point to your server
I have access to one through my school! So that wont be a problem 👍
You create a release build of your app and upload it to the VPS
Then you run it
As an optional step, you can put it behind a reverse proxy like NGinx or YARP
Alright, thanks alot!
Now I know where to start 😄
GitHub Education
GitHub Student Developer Pack
The best developer tools, free for students. Get your GitHub Student Developer Pack now.
This might be useful if you're a student
Couple domains free for a year, couple VPSes also free
And a yearly subscription to JetBrains All IDE pack
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.