What on earth is FReMP stack?
The FReMP stack is a highly scalable full stack framework, which can be used to build awesome web apps. The acronym stands for Flask, ReactJS, Mongodb and Python. Unlike other famous stacks such as MEAN and MERN, the FReMP stack uses Python to handle back-end operations. Examples of such operations can be machine learning and artificial intelligence operations, web scraping tools or digital image processing.
Step 0: Update your list of installed packages
While this is optional, it is always a good practice to update your list of packages and upgrade them for newer versions before starting any installation on your environment. Run the following to do so:
$ apt-get update
$ apt-get upgrade
Step 1: Install Python3/Flask
Our first step in install FReMP, is to install Flask, which famously known as Python’s micro web framework. I, personally, think that Flask perfectly suits this description. Since Python has been deprecated and taken over by Python3, we will proceed by installing Python3 and use PIP3 to install the required packages.
$ apt-get install python3Re
$ apt-get in
$ sudo -H pip3 install flask
$ flask --version
If you can see the version without any error, it means Flask has been successfully installed on your machine and that you are good to go. Please note that at the time of this writing, the latest version of Flask is 1.1.1 and latest version of Python is 3.8.2
Step 2: Install ReactJS
The second step is to install ReactJS. We need to make sure NodeJS is installed, then use NPM, which is a package manager for node, to install npx. We will then use NPX to create the react front-end folder.
$ apt-get install nodejs
$ sudo npm install -g yarn
$ sudo npm install -g npx
$ yarn --version
$ npx --version
In this tutorial, we will use Yarn, which is an alternative to NPM and is considered faster. You may omit this installation and proceed with NPM is you want to. Again, if you can see the version of npx without any error, it means you are good to go.
Step 3: Install Mongodb
The final step to get FReMP installed, is to install Mongodb, the famous document database with the high scalability and flexibility.
$ apt-get install mongodb
$ mongo --version
If you can see the version of your mongo shell with no errors, it means mongodb has been installed successfully on your machine. By default the service will be on. If the service happens to be off at a point, you can just start it by running:
$ sudo service mongodb start
$ sudo service mongodb status
That’s it! You now have FReMP installed on your machine.
Stay tuned for the next part, which will be a tutorial about building a simple app using the FReMP stack. In the meantime, you can check our this article.