Posts

Node.js Microservice with NestJS: Part 1 - Service Overview

Image
Overview of the tour-service Over the next few posts we will dig into building the tour-service.  In this post we will briefly go over what the service will do and its primary components that we will be building out in subsequent posts.  For more details about the entire application we will be building and deploying, check out the prior posts: An Overview of the App  - An overiew of the entire application we will be building, both frontend and backend. Setting up our monorepo with Turborepo, pnpm, React Native, Expo, and NestJS  - An overview of our repo layout and build tools. What will the tour-service do? The tour-service accepts REST API calls containing a user's current GPS coordinates and returns information about nearby points of interest, which we will be referring to as Landmarks.  The tour-service queries data providers such as Wikipedia to get information about Landmarks within a given distance of the user's coordinates then returns a list of those La...

Setting up our monorepo with Turborepo, pnpm, React Native, Expo, and NestJS

Overview In this post we will go over our project setup and build. We will be building both a mobile app using React Native with Expo and an API service using NestJS.  For the purpose of this project I have chosen to use a monorepo where both the mobile app and service code will live.  Within our monorepo, we will modularize our artifacts from the start.  This makes it easier to reuse shared code amongst our different applications, to split up CI/CD, and if we ever want to split into a multi-repo, we will have clear boundaries already in place.   Turborepo and pnpm - A winning combination To enable a fast build with multiple artifacts all living in the same repo, Turborepo and pnpm are some of the top choices.   pnpm is a replacement for npm with a faster build that also takes up less disk space due the the way it shares package files.  Its workspace  feature provides the ability to make one build artifact depend on another artifact in the sa...

An Overview of the App

Image
The App  I really enjoy traveling and like to find out about interesting things nearby wherever I happen to be.  I am often driving when visiting new places and thus am not necessarily able to look on my phone, so I thought: Why can't an app just read me information about nearby attractions?  I couldn't find an existing app that did, so I figured it would be pretty fun write my own.  That is how I came up with the idea for the app we are going to be building.  For now, we will call it autotoor.   What will the app do?  The app will leverage the user's phone's current location to lookup nearby points of interest and then read information about them to the user.  It will also display an associated picture and the text of what it reads aloud. Where will we get the information about points of interest from? Luckily Wikipedia offers a Geosearch API that allows you to lookup articles by GPS coordinates.  We can pass a user's GPS coordinates ...

Welcome

 Hi. My name is Alex and I've been developing software since the turn of the century.  My goal with this blog is to share the steps that go into building a production quality full stack application.  I am going to start with a simple proof of concept and iterate on it.  The application we will be building together is intended to tell users information about local landmarks while they are walking or driving around.  I have decided to call it autotoor as that was the most descriptive available domain I could find.  Some things I hope to go through in future posts: Defining the MVP (Minimum Viable Product) Creating an initial app that we can run locally Using Expo to test a mobile app on a phone Deploying the backend to a cloud provider Building a test build of the mobile app to run on a phone Defining the infrastructure as code Automating the build pipeline Publishing the mobile app to app stores Some technologies I plan to use along the way: Node.js NestJS R...