My Journey Creating My First Solo Project (part 2): Technologies and tools
Tags: webdev
Published: 2020-08-17 15:10:38


*This article was originally published on [my personal blog](https://arnaudcortisse.com/blog).*

## Introduction

In my [previous blog post](https://dev.to/arnaudcortisse/my-journey-creating-my-first-solo-project-part-1-23ik), I described the motivations behind building [DoNotSkip](https://donotskip.com/en/), what problems it would try to solve and the big picture of how I would go about building it.

In this blog post, I'd like to describe what are the main technologies / tools I used to create it and why I chose them.

## Main parts

As described in my [previous blog post](https://dev.to/arnaudcortisse/my-journey-creating-my-first-solo-project-part-1-23ik), the project consists of 3 main parts:

- A **platform for coaches** to create and publish workout programs: a single-page application.
- A **platform for the workout programs' landing pages**: a server-side rendered application.
- **A mobile app to use the workout programs**

## Technologies / tools

I'm going to list the most important libraries and tools I used in this project. Just so you know, I didn't have to pay anything for the entire development period (and I think that's pretty amazing).

### Common

Most of the technologies and tools are common to the three main parts of the platform, and that's one of the reasons JavaScript is so awesome!

The community is very strong and a lot of empowering tools have been built for you.

Even though I had to build 3 quite different products (a SPA, a SSR app and mobile app), I was able to leverage stuff from each app and apply it to the others. No need to relearn everything from scratch as soon as the requirements change!

#### Front-end

- **[Typescript](https://www.typescriptlang.org/)** as the programming language. I actually got started with JavaScript, but I soon realized it didn't scale well (more on that in another blog post). I do not regret migrating to Typescript whatsoever.
- **[React](https://reactjs.org/)** for the UI. I could have chosen Vue or Angular, but React was the only modern web UI framework I'd used so far.
- **[Redux](https://redux.js.org/)** for local state management. In my opinion (and I know it's a moot point), Redux is the go-to state management library when developing complex React apps. In retrospect, I shouldn't have used it in DoNotSkip Programs (because the state isn't complex in that app). Otherwise, I think it's an awesome library that scales very well! If I was to start a new React project with Redux, I would definitely have a look at [Redux Toolkit](https://redux-toolkit.js.org/), which seems to reduce the amount of boilerplate code to write.
- **[Reselect](https://github.com/reduxjs/reselect)** to access the Redux state. Not only can you centralize and test the way you access your state, but you can also compute derived state and memoize the result.
- **[Redux Typed Saga](https://github.com/agiledigital/typed-redux-saga)** for side-effects. It's just a library providing Typescript over [Redux Saga](https://redux-saga.js.org/). I basically had to choose between Redux Saga and Redux Thunk. Redux Saga documentation looked very clear and I liked how the code read (I find it way easier to read asynchronous code than nested callbacks).
- **[react-18next](https://react.i18next.com/)** for internationalization. I actually don't remember why I chose it over [react-intl](https://formatjs.io/) but all I can say is it's very easy to use.
- **[Apollo Client](https://www.apollographql.com/docs/react/)** to perform client-side GraphQL requests. There exists plenty of other libraries, but this is one of the most famous. Furthermore, it supports [subscriptions](https://www.apollographql.com/docs/react/data/subscriptions/) which I knew I would need. I just think I haven't really used it properly because I don't leverage its built-in cache system.
- **[Immer](https://immerjs.github.io/immer/docs/introduction)** makes updating states in Redux reducers way easier than in plain JavaScript. I started out with plain JavaScript and felt the code of my reducers was becoming too difficult to read.

#### Back-end

- **[Typescript](https://www.typescriptlang.org/)** as the programming language. Like I said before, I started out with JavaScript but didn't like where my codebase was going.
- **[Node.JS](https://nodejs.org/en/)** as the backend framework. Very popular backend framework in the web development world since the programming language is JavaScript. [Deno](https://deno.land/) might be its replacement, but not anytime soon.
- **[Firebase](https://firebase.google.com/)** for:
  - Authentication: you get OAuth authentication **for free** (with all major sign-in providers).
  - Serverless functions: to me, serverless is the future of backend. Why would I even bother managing my own servers when I can have them managed by experts? You only pay when the functions are up (and they go back to sleep after a while) and they scale automatically as demand grows. Of course, they have drawbacks (such as cold-starts), but the advantages far outweighed them in my case.
  - Storage: I didn't really compare it with anything else, since I was already all in on Firebase.
- **[Google Cloud](https://cloud.google.com/)** is the cloud provider I chose. First of all, it's what Firebase uses behind the scene. Secondly, they offer a generous 300€ credit (only for the first year). Finally, after having tested Azure and AWS, I found it way easier to use.
- **[Hasura](https://hasura.io/)** here is the official description of the product: _"Hasura GraphQL Engine is an opensource product that connects to your databases & services and gives you a realtime GraphQL API, instantly."_ I won't go into the details in this blog post but what I can already tell you is that it's really awesome. You basically have fine-grained access to your database via an automatically generated GraphQL API.
- **[PostgreSQL](https://www.postgresql.org/)** for the database. I didn't really choose this one, since this is the only database compatible with Hasura.
- **[Heroku](https://www.heroku.com/home)** to host Hasura engines and PostgreSQL databases. Their free tier is also very generous and you can get up and running in a few minutes.

#### Miscellaneous

- **[Axios](https://github.com/axios/axios)** as the HTTP clients for both the frontend and the backend. That way, I can use the same syntax everywhere.
- **[Yup](https://github.com/jquense/yup)** to parse and validate JavaScript objects.
- **[Jest](https://jestjs.io/)** for unit-testing. I picked up this framework because it was the only one I was familiar with in the JavaScript ecosystem.
- **[Github](https://github.com/)**.
- **[Lerna](https://lerna.js.org/)** makes dealing with [monorepos](https://en.wikipedia.org/wiki/Monorepo) easier.
- **[Husky](https://github.com/typicode/husky)** to launch linting + testing automatically whenever I commit changes to Github.
- **[GraphQL Code Generator](https://graphql-code-generator.com/)** to automatically generate Typescript types for my GraphQL requests.
- **[Google Analytics](https://marketingplatform.google.com/about/analytics/)** for analytics. The free version of Google Analytics provides more than enough insight.
- **[Sentry](https://sentry.io/welcome/)** for application monitoring and error tracking. I had heard it advertised many times in some of the podcasts I listen to and decided to give it a go.
- **[Github Actions](https://github.com/features/actions)** for CI/CD. Pretty easy to use, integrated with Github and generous free tier.  

### Project-specific

I needed to use the right tool for the right job. The 3 projects are each of different nature.

#### DoNotSkip Coaches

- **[Create React App](https://create-react-app.dev/)** to set up the project. You get everything configured and you are good to go in no time.
- **[Material-UI](https://material-ui.com/)** for the UI components and design system. I've always loved the simplicity of Google products and since I'm not good at designing, I thought it would be a wise decision to have strict guidelines and predefined components.

#### DoNotSkip Programs

- **[Next.JS](https://nextjs.org/)** to render server-side pages. It's the go-to framework when it comes to building SSR apps with React. It's also the framework I had the most difficulty getting started with because I didn't immediatly understand the core concepts. A few major releases came out since the first time I used it that have made it easier to get started with.
- **[App Engine](https://cloud.google.com/appengine)** to host the [Next.JS](https://nextjs.org/) app.
- **[Material-UI](https://material-ui.com/)** for the UI components and design system.

#### DoNotSkip App

- **[React Native](https://reactnative.dev/)** to build hybrid apps. It was a no-brainer since I already had used React so much.
- **[Expo](https://expo.io/)** to have even more tools and services around React Native.
- **[NativeBase](https://nativebase.io/)** for the UI components and design system.

#### DoNotSkip Landing Page

- **[Gatsby](https://www.gatsbyjs.com/)** to create static pages with React.
- **[Material-UI](https://material-ui.com/)** for the UI components and design system.

## Conclusion

As you can see, I've used a lot of third-party libraries in order to build [DoNotSkip](https://donotskip.com/en/) (and I didn't mention all of them...). It's pretty common to do that in the JavaScript ecosystem instead of reinventing the wheel. When picking a library, I just made sure it was still maintained.

Now that you know the tech stack I used, I'm going to describe the cloud architecture of [DoNotSkip](https://donotskip.com/en/) in the [next blog post](https://dev.to/arnaudcortisse/my-journey-creating-my-first-solo-project-part-3-cloud-architecture-4fil).