Steps to Create a React Application and Installing Module

Step 1: Create react application in your project folder using the following command and navigate to the folder.

npx create-react-app client
cd client

Step 2: Install additional packages

npm install axios react-router-dom @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome

Step 3: In the index.html file add the following google font embeddings so that we can use these particular fonts in our app.

<link rel=”preconnect” href=”https://fonts.googleapis.com”>

<link rel=”preconnect” href=”https://fonts.gstatic.com” crossorigin>

<link href=”https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap” rel=”stylesheet”>

Travel Journal App with MERN Stack with API

In this article, we are going to explore the project which is a travel journalling app, where users can log in and register, make journal entries describing the various places they traveled to, and also upload their images. They can search through the various entries they’ve made and also delete them.

The website enables authentication and authorization i.e. only users who have accounts can explore the app and only authors of entries can view them. It is a great solution for all travel lovers. We are going to make it using the MERN stack (Mongo DB, Express, React, and Node).

Output Preview: Let us have a look at how the final output will look like.

Final Preview of the Website

Similar Reads

Prerequisites:

NPM & Node JS ReactJS MongoDB ExpressJS MERN Stack...

Approach to Create a Travel Journal App with MERN Stack:

Login/Register – The website enables users to login and register, so that only authenticated users can access the app. It also has the option of uploading profile pictures. Home Page – It lists down all the entries create by the user. It gives a snapshot of the original entry and viewers can click the Read More button to navigate to the whole entry. Users can also search for entries based on title, location and date. Create Page – This page is where users create the actual entries. They can also provide details like date of the entry, title of the entry, location and upto 3 images as memories. View Page – The view page basically showcases all the details about the entry in full detail. It also has an image carousel to flip through multiple images. Logout – Logout functionality will basically erase user data stored in browser cache. Authorization – We are using authorization to facilitate privacy i.e. only users who’ve created the journal entry can view them and delete them. Delete – Erases the journal entry. State Management – Context API is being employed to facilitate state management....

Steps to Create a Backend Server:

Step 1: Create a server using the following command in your terminal....

Project Structure(Backend):

Project Strucure...

Steps to Create a React Application and Installing Module:

...

Project Structure(Frontend):

...

Contact Us