₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,221 members, 8,429,887 topics. Date: Friday, 19 June 2026 at 03:13 PM

Toggle theme

BenBender's Posts

Nairaland ForumBenBender's ProfileBenBender's Posts

1 (of 1 pages)

ProgrammingRe: Help Understanding Axios by benBender(op): 11:05am On Apr 11, 2022
Karleb:
Just a simple YouTube search will save you this stress.
Boss where, I don comb YouTube still I no see anything
ProgrammingRe: Help Understanding Axios by benBender(op): 12:59am On Apr 11, 2022
DrLevi:
Save yourself the trouble and learn to use a client-side framework. If you want to make database update without reloading the page, you're basically doing what client frameworks are built for and is every indication that you need to switch to using one.

3 days you spent on that was enough to get Vue or Svelte running.
Thanks boss, I having been hearing good reviews about svelte I will soon check up on it .
ProgrammingRe: Help Understanding Axios by benBender(op): 12:55am On Apr 11, 2022
devdev:
On your nodejs application, i believe you have something called routes, these routes are known as APIs... How you set up these routes determines how axios can interact with them. So you have options like POST, GET, PUT, DELET etc. On the axios side, for example you have a GET route, all you do is axios.get(api).then().catch().... In this case, Axios should be used on your frontend
Thanks boss for taking time to answer me.
Since I'm to use it on the client side, I require/import it but I'm getting an error that it's not define.

What I'm I doing wrong.

ProgrammingHelp Understanding Axios by benBender(op): 10:24pm On Apr 10, 2022
I'm currently building a web app, the backend is built with node/express, my database is mongodb while I'm using a templating engine for the front-end (why??) .

The issue am having now is that I want to manipulate the DOM right before data is store in the database.

So I did some research and I found out I need to store my data in a database without reload the page which can be accomplished with axios library.

I having been searching for 3 days now on how to incorporate axios into my code, to say am confuse will be an understatement of the century.
Like I don't even know if I should use it on my server or client side.

Somebody, anybody please help??

@qtguru
@tensazangets20
@airsaylongcome
@DrLevi
@karleb

1 (of 1 pages)