By tedsemon
I’ve created a website (vanilla JS/CSS/HTML) which uses Strapi as a backend. It works fine on my localhost. But I cannot get it to work on the DO platform. I’ve uploaded both of them as apps, but I can’t get my static website to talk to / access the Strapi backend.
The two apps work independently; I can log into Strapi and create/modify data and I can visit my website and see the various pages (but no data) so they’re working, but not communicating with each other.
I’ve gone through the relevant tutorials but can’t see what I’m doing wrong. Any and all help greatly appreciated - if someone has done this before, please point me to them. Note this is not React or Vue - it’s just plain old vanilla Javascript.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I could suggest a couple of resources here:
Consuming a Custom API With React: In this video you will learn how to build a Custom API with Strapi and focus on our frontend code using React to grab data from an API.
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.