Step 1

I have created the backend (API + persistence mechanism) for the Zirectory App. You can find it here.

  • Clone the repository.
  • Open the terminal and change directory to zirectory-api.
  • Install the dependencies: npm install
  • Create a .env file with the following content:
    DB_URI="YOUR_MONGODB_URI"
    
    • You must have a MongoDB cluster running in the cloud.
    • If not, create one, then obtain its URI to connect to it.
    • Make sure to replace <password> with your database admin password.
    • And, replace the <dbname> with the desired database name.
  • Run the backend using nodemon . (It will run at http://localhost:4567)
  • You can download this minimal Postman request collection to test the API.