This repository contains the source code for the Sops API. It's built using Node.js, Express.js, and MongoDB.
To get started with this project, clone the repository:
git clone https://github.com/obrm/shpos-api.git
Make sure you have Node.js installed on your system.
To run this project, you'll also need to have a MongoDB Atlas account and create a project for this project in MongoDB Atlas. Once you have created a project in MongoDB Atlas, you can obtain your MongoDB URI, which you will need to set as an environment variable in the config.env
file to connect to your database. See the Local Environment Variables section in this README for more information.
After cloning the repository, run the following command to install the required dependencies:
npm install
In order to run the project locally, you'll need to set some environment variables. Create a config
folder in the root directory of the project, and add a file named config.env
with the following variables:
NODE_ENV=development
PORT=5000
MONGO_URI=<Your MongoDB URI>
Make sure to replace <Your MongoDB URI>
with the actual URI for your MongoDB instance.
To start the server in development mode with nodemon, run the following command:
npm run dev
The server should now be running on http://localhost:5000
.
This project is licensed under the MIT License.