Category : node.js

Pretty straight forward. I’m successfully proxying from the default PHP server (7.4) running on my Ubuntu 20.04 laptop. Browsersync relays everything as expected to port 3000. I found another gulpfile.js setup here (a little outdated): https://garywoodfine.com/php-server-browsersync-gulp/ It’s an older example; but it’s somehow showing me the proxyied PHP logs in the console. This is my ..

Read more

I’m calling the files as follows <link href="{{asset(‘assets/css/themes/layout/header/base/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/header/menu/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/header/menu/light.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/brand/dark.css’)}}" rel="stylesheet" type="text/css" /> <link href="{{asset(‘assets/css/themes/layout/aside/dark.css’)}}" rel="stylesheet" type="text/css" /> and <script src="{{asset(‘assets/custom/js/bootstrap-datepicker.min.js’)}}"></script> <script src="{{asset(‘assets/custom/js/bootstrap-timepicker.min.js’)}}"></script> the app.blade.php file is on the way: resourcesviewsBackendlayout I’ve already used the commands below that solved some files in ..

Read more

I would like to install Node.js with yarn.pkg in my Dockerfile. The Dockerfile is for a Laravel8/PHP8 project. This is my actual try: RUN curl -sL https://deb.nodesource.com/setup_16.x | bash – RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add – && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list RUN apt-get update -y && apt-get install -y –no-install-recommends ..

Read more

I have a function in node.js to transfer erc20tokens using api like this: app.post(‘/sendtokens’, async(req, res) =>{ console.log(req.body) let privateKey = req.body.privateKey; let receiverPublicKey = req.body.receiverPublicKey; let amountToSend = req.body.amountToSend; // change here yout contract address let contractAddress = ‘contractaddresss’; // put your infura API here let provider = new HDWalletProvider(privateKey, "nodeurl"); let web3 = ..

Read more