• Rust for Web Developers | Mozilla ♥ Rust
    Articles,  Blog

    Rust for Web Developers | Mozilla ♥ Rust

    Let me tell you a little bit about what Rust is about. Rust is a secret weapon Rust is a community project. Rust has learned from the mistakes of the past. Rust is a systems programming language that is safe, concurrent, and fast. I got one word for you: Rust. Rust make systems programming accessible web developers. When you need to optimize your web application, instead of diving to C, which is incredibly error-prone, you can instead use Rust, which is going to protect you from errors and it’s going to be as fast as the hardware allows. There’s a large group of people who traditionally would use higher-level languages…

  • Custom Domain & Free SSL
    Articles,  Blog

    Custom Domain & Free SSL

    Hey guys, what’s up! Today we’ll be talking about custom domain name and SSL. in case you don’t know, apart from cloud code you can also host your static website with us. Cool, right? 🙂 So if you have a custom domain name for your app you can easily add it and what is more important you can secure it with an SSL. Let’s login to the dashboard and locate the hosting section. So once we log in and we click on our app, we will navigate to the App settings and here is the emails and hosting section. This is the place where we ‘ll go if we need…

  • Articles

    Custom Domain & Free SSL

    Hey guys, what’s up! Today we’ll be talking about custom domain name and SSL. in case you don’t know, apart from cloud code you can also host your static website with us. Cool, right? 🙂 So if you have a custom domain name for your app you can easily add it and what is more important you can secure it with an SSL. Let’s login to the dashboard and locate the hosting section. So once we log in and we click on our app, we will navigate to the App settings and here is the emails and hosting section. This is the place where we ‘ll go if we need…

  • Articles

    How to Run Node.js and Apache Together

    hello and welcome to red stapler now if you have your website running on Apache but also want to have node.js serve some of your URL in this tutorial I’m going to show you how to use reverse proxy technique to make a apache able to run nodejs application on the same server let’s go check it out since we cannot run both node.js and apache to listen on the same port we will need to config Apache to act like a reverse proxy and pass the request to node.js application instead first let’s start a node application to listen on port 3000 this is the simple apps you listen…

  • Server-side routing with react-router@3
    Articles,  Blog

    Server-side routing with [email protected]

    Let’s set up server-side routing with react-router. Before we begin, I’ll assume that you have a web app built with React and Express. First thing’s first, if you’re using nodemon, make sure you’re watching files with the extension `js` and `jsx`. This way, your server will automatically restart on file change. Now in order to use `react-router`, you’ll need to install it. Run `npm install [email protected]`. Make a new directory named `routes` and create a file named `index.jsx`. This is where the routes will live. Now open `server.js` with your text editor of choice. I’m moving the static middleware to the top and then using the new route file that…

  • Server-side rendering with React.js
    Articles,  Blog

    Server-side rendering with React.js

    Let’s learn how to perform server-side rendering with React.js. To follow along, you’ll need node installed. First, open your Terminal. Then create a directory for the project– I’m going to name mine ‘React’– and let’s change into that directory. We’ll be using Express to build our web application, so install it with npm. Once that’s done, create a file named `server.js` and open it with your text editor of choice. First, require `express` and then instantiate the app. Next, create a route for the index page, which is designated by a forward slash. In the callback, it will respond with ‘Hello World!’ as the main heading. And we’ll specify port…