How to install Our Shopping List on Fedora Server

Our Shopping List is an open-source web application that allows users to create and manage shopping lists. This tutorial will guide you through the installation process on Fedora Server.

Prerequisites

Before we begin, please make sure that:

Step 1 - Install Dependencies

The first step is to install the necessary dependencies. Our Shopping List requires Node.js and MongoDB to run. You can install them using the following command:

sudo dnf install -y nodejs mongodb

Step 2 - Clone the Repository

Next, we need to clone the Our Shopping List repository from GitHub. You can do this by running the following command:

git clone https://github.com/nanawel/our-shopping-list.git

This will create a directory named our-shopping-list in your current directory.

Step 3 - Configure MongoDB

MongoDB is now installed, but it needs some configuration. First, start the MongoDB service :

sudo systemctl start mongod

MongoDB should now be running as a service. To ensure it starts up automatically in the future, enable the service.

sudo systemctl enable mongod

Step 4 - Install Required Packages

The repository contains a package.json file, which lists all the required packages. Navigate to the our-shopping-list directory and run the following command:

npm install

This will download and install all the packages required to run Our Shopping List.

Step 5 - Configure the Application

The application configuration file is located at config/default.json. Open it in your favorite text editor and amend the mongo.uri to mongodb://localhost:27017/shoppinglist in the development and production fields. Replace shoppinglist with your own database name.

Save and exit the file.

Step 6 - Start the Application

Our Shopping List is now ready to run! You can start the application by running the following command from within the our-shopping-list directory:

npm start

This will launch the application on port 3000. You can access it by visiting http://localhost:3000 in your web browser.

Conclusion

In this tutorial, you have learned how to install Our Shopping List on Fedora Server. You have also learned how to configure the application and start it. With this setup, you can use Our Shopping List to create and manage your shopping lists.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!