This project is developed using the Express.js back end web application framework.
- Download and install Node.js from their official webpage. As of this writing, the project uses Node.js LTS 18.16.0.
- Download and install MongoDB from their official webpage. As of this writing, the project uses MongoDB Community Server 5.0.3.
-
Create a
.env
file in the root folder of this project. The following environment variables are required for the project to run.MONGO_URL
- The MongoDB connection string. This is used to connect to the MongoDB database.
An example
.env
file is provided in the root folder of this project. Rename the file to.env
and fill in the required environment variables.
-
Follow the official Git installation documentation to install git on your system.
-
git clone https://github.com/RyanNgWH/WhichCard-backend.git
Clone this git repository.
-
cd WhichCard-backend
Navigate into the cloned git repository.
-
npm install
Install all required node package dependencies.
The following command should be executed from the root folder of this project.
-
npm start
Starts the api server.