No more long history of pipelines, let’s clean it all up 🧹

Unsplash: JJ Ying

Introduction

Failed, passed, canceled, pending, there are a lot of chances that you have a long list of old jobs in your GitLab project.

Hopefully, GitLab provides API endpoints to list them or delete pipelines one by one. You see where I’m going with this, we will call the “list” endpoint. Save the list into an array. Then loop over the array and call the delete endpoint.

As we love automation, we will write a JS script 🤖

Endpoints

First, we need to read the GitLab doc to know more…


Bring biometric auth to your React Native or Expo app. Let your users sign in with it.

Unsplash: Debby Hudson

Introduction

Like many applications, your app may have authentication. Your users might sign in with an email/password.

So once they sign in everyone using their phone can access the data inside the app. It can be a problem if your apps keep sensitive data. One solution is to re-ask the password each time the user uses the application. It is a good solution but it affects the user experience.

You may have seen that apps like banking, health, etc.. use biometric to let users…


Need to create recurring tasks? Execute tasks later? Agenda is what you may need.

Unsplash: Estée Janssens

Introduction

When building a Node.js application, you may need to execute recurring tasks or run them later. ⏰

You might know CRON jobs on Linux systems. CRON is a time-based job scheduler. It allows us to realize tasks every minute, day, months, etc.

With our Node.js app, we want to run something like CRON. But how? Hopefully it exists multiple solutions to schedule tasks on Node.js:

  • node-schedule
  • node-cron
  • bull
  • agenda

Today, we will take a look at Agenda. It is described as “A light-weight job scheduling library…


Husky helps to run tests on your code before committing, pushing…

Unsplash: Cody Board

As a developer, you may want to keep your code clean and formatted. If you are coding in JavaScript you might be using ESLint ⚙️

ESLint helps you to format your code by applying custom rules. But if a developer of your team doesn’t lint his code, you will probably have a “dirty” code in your git repo…

…that’s when husky happens to help you.

“Husky can prevent bad git commit, git push and more 🐶 woof!”. It helps you to create simple git hooks. …


Because getting up early shouldn’t be a problem, here are 5 tips for getting up early.

Unsplash: Dawid Zawiła

Introduction

Did you ever think of waking up earlier to realize more things? Waking up earlier is a good idea to improve productivity as at 5 a.m there is less noise, stress and you can get more concentrated.

But you have to be able to stand up. Waking up at 5 a.m is not easy, if you aren’t used to it. You will find you any excuses or reasons to stay in bed.

I had the same problem when I tried to wake up earlier…


Build iOS .ipa and Android .apk expo app locally by using Turtle CLI

Unsplash: Adolfo Félix

Introduction

Recently, I had to build an expo app. I tried it by using expo.io servers, but my build was in the queue and I didn’t have time to waste.

So I decided to see if it was possible to build an Expo app locally and I’ve found turtle-cli.

What is Turtle CLI:

Expo allows us to build our apps on their servers. They have built a special CLI to realize it and they Open-Sourced it. So anyone can use and contribute to Turtle CLI.

It allows us…


A simple guide to serving files over HTTP and HTTPS with Python 3 🐍

Unsplash: Timothy Dykes

Introduction

Recently, I had to create my own https server to build an Expo app (React Native) with turtle-cli on my own device.

Turtle-cli needed to access some files over https. One of the solutions was to make a simple HTTPS server to serve the current folder. Usually I would have done it with Node.js, but change doesn’t hurt.

Let’s see how to build our server with Python 3. You will need:

  • OpenSSL
  • Python3
  • And a computer 😎

Create an HTTP server

To start your server, you need to go inside the folder you want to serve and run this command:

python -m http.server 8000


Lottie allows us to render After Effect animations natively on mobile and web

Unsplash: Yoga Perdana

Introduction

Animations help to make your app more dynamic and more user friendly. As you may know, it is possible to create animated videos with Adobe After Effect.

Why not integrate these animations to our App?

That is when Lottie comes to help us 😎.

Lottie is a library that allows us to add animations in iOS, Android, React Native, etc.

The main goal of Lottie is to integrate After Effects animations in our App by using a JSON file (We will not see how to pass from…


A simple guide to authenticating your users with Apple on React Native and Node.js

Unsplash: Sascha Sturm

Recently with a client, we have been rejected on the App Store because we have enabled a 3rd part authentication (Facebook) without adding “Sign in with Apple”.

So, we had to deal with it and implement “Sign in with Apple” in our app. We wanted to have:

  • “Sign in with Apple” button
  • Link the “Apple account” with our accounts in our Back-End.

“Sign in with Apple” is an authentication method that allows us to:

  • Protect account with two-factor authentication
  • Give the user email to the app…


Building a To-Do app with Deno and React Native

Unsplash: Carl Heyerdahl

Recently Deno (An alternative to Node.js) has released. A lot of peoples are talking about it as it is new and sounds to have some cool features. Today, we will make a simple To-Do app with Deno as a REST API.

We will see these different things:

  • Oak (An HTTP Framework like Express.js)
  • Denon (Alternative to Nodemon)
  • Realizing a CRUD

Our application will be very basic but we’re gonna have fun.

Setup the environment

As we are new to Deno, we need to install it:

On macOS / Linux:

curl -fsSL https://deno.land/x/install/install.sh | sh

On windows:

iwr https://deno.land/x/install/install.ps1 -useb | iex

Once you…

Nicolas Dommanget-Muller

Développeur Full-Stack 👨‍💻 React Native x Node.js

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store