Skip to content
José Antonio Zamudio Amaya edited this page Dec 8, 2022 · 4 revisions

Localhost

Clone the repo (https://github.com/fisg4/ms-users) and enter the root folder:

$ git clone https://github.com/fisg4/ms-users
$ cd ms-users

Once inside, run the dependency installer:

$ npm install

You will need MongoDB installed in your computer (install MongoDB), create a new database named "test" and run the following:

$ npm start

Cloud

Connect to MongoDB Atlas following these steps:

  1. Create the file ".env" in the root folder of the project
  2. Ask mods for the Atlas DB credentials, and append the information provided in the .env file, it should look something like
DB_URL="mongodb+srv://superuser:<password>@users-service.5nzx63g.mongodb.net/test"

Then, depending on your OS, you will need to run different commands. Run "$ npm run start-linux" if you're on a UNIX environment or "$ npm run start-windows" if you're on Windows.

Clone this wiki locally