Open in app

Sign in

Write

Sign in

François Romain
François Romain

178 Followers

Home

About

Apr 30, 2018

Set a local web development environment with custom Urls and HTTPS

With web projects running inside Docker containers. — To develop a web project¹ on a local machine, we usually launch a web-server listening at http://localhost:port. In production, the url for this project is https://my-app.com. We want to mimic the production environment on the local computer. How can we have a custom url and HTTPS, like https://my-app.local? In this article, we are going to: Create custom urls for several web projects, like my-app.local.

Docker

4 min read

Docker

4 min read


Apr 30, 2018

Getting started with Docker for local Node.js development

How to setup Docker-compose to isolate a web application — Each computer has a specific environment: some tools and specific version of languages are globally installed, our applications share databases… When we work on a web project, the production server might be different from our computer. This is error prone. Docker solves this problem by running applications in isolated environments. In this article, we are going to

Docker

3 min read

Docker

3 min read


Aug 16, 2017

Smooth a Svg path with functional programming

How to use pure functions, closures and functions composition — In a previous article we went through the steps to Smooth a svg path with cubic bezier curves. Here, we are going to refactor this code with functional programming. Functional programming is the process of building software by composing pure functions, avoiding shared state, mutable data, and side-effects. From What is functional programming? by Eric Elliott

Functional Programming

6 min read

Smooth a Svg path with functional programming
Smooth a Svg path with functional programming
Functional Programming

6 min read


Jul 26, 2017

Smooth a Svg path with cubic bezier curves

And a bit of trigonometry — While it is straightforward to draw straight lines in a Svg element, it requires a bit of trigonometry to smooth these lines. Let’s see how. Follow up article: refactor this code with functional programming. We have an array of tuples representing the points coordinates of a line. const points = [[5, 10], [10, 40], [40, 30], [60, 5], [90, 45], [120, 10], [150, 45], [200, 10]]

Design

5 min read

Smooth a Svg path with cubic bezier curves
Smooth a Svg path with cubic bezier curves
Design

5 min read


Jul 19, 2017

Host multiple websites with HTTPS on a single server

Setup a reverse-proxy, and, for each website running inside a Docker container, create an automatic nginx configuration and a SSL certificate. — Hosting multiple websites on a single Virtual Private Server is simple and efficient. Nowadays, HTTPS is a required feature for any website. Let’s see how to: Setup a nginx reverse-proxy and generate a nginx config for each website to link a domain name and a container.

Docker

4 min read

Host multiple websites with HTTPS on a single server
Host multiple websites with HTTPS on a single server
Docker

4 min read


Jul 14, 2017

Setup Node.js, Apache and an nginx reverse-proxy with Docker

A complete example — A modern web-app requires an environment to run JavaScript on a server and to request data from APIs running on other type of servers. Edit Apr 28, 2018: removed the deprecated links docker-compose instructions. Let’s make an example which does the following when the server receives a client request: An nginx reverse-proxy forwards incoming traffic to the appropriate server and directly serves static assets (images and scripts).

Nodejs

6 min read

Setup Node.js, Apache and an nginx reverse-proxy with Docker
Setup Node.js, Apache and an nginx reverse-proxy with Docker
Nodejs

6 min read


Jun 28, 2017

Deploy a website to a remote server with Git push

Three steps to configure the deployment process with a Git Hook. — Git is a great tool for version control, but not only. It can also simplify the deployment process, thanks to Git Hooks. Three steps to configure the deployment process: 1. Create an empty Git repo on the server 2. Write a Git Hook to deploy the code 3. Deploy from the local computer tl;dr On the remote server: # Copy the 'project-create.sh' bash script https://gist.github.com/francoisromain/58cabf43c2977e48ef0804848dee46c3 …

Git

3 min read

Deploy a website to a remote server with Git push
Deploy a website to a remote server with Git push
Git

3 min read

François Romain

François Romain

178 Followers

Freelance developer / designer → http://francoisromain.com

Following
  • More To That

    More To That

  • Michael Lugassy

    Michael Lugassy

  • David Gilbertson

    David Gilbertson

  • Jean-Lou Fourquet

    Jean-Lou Fourquet

  • Ryan Hanson

    Ryan Hanson

See all (47)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams