Expressa is an open-source Node.js framework for building RESTful APIs. This tutorial will guide you through the installation of Expressa on Windows 11.
Before we begin, make sure you have the following software installed on your computer:
First, open up the command prompt by pressing the "Windows Key + R" and type "cmd" in the run box, and press Enter.
Once you have the command prompt open, navigate to your workspace folder with the cd
command. For example:
cd C:\users\user\workspace
Next, clone Expressa from Github using the following command:
git clone https://github.com/thomas4019/expressa.git
After cloning, navigate to the expressa directory using the following command:
cd expressa
Then, install the dependencies using the following command:
npm install
Expressa uses MongoDB as its database. Therefore, you'll need to install MongoDB on your computer.
Visit the following link to download and install the MongoDB Community Server for Windows:
https://www.mongodb.com/try/download/community
Once installed, start the MongoDB service by executing the following command:
net start MongoDB
Then, create a database called "expressa" by running the following command on the MongoDB shell:
mongo
> use expressa
Now, you can start the Expressa server using the following command:
npm start
By default, the server will listen on port 3000
. You can visit the Expressa API documentation at http://localhost:3000/docs.
In this tutorial, you learned how to install Expressa on Windows 11, clone the repository from Github, install the dependencies, setup the database, and start the server. You are now ready to start building your RESTful API using Expressa.
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!