Giter Site home page Giter Site logo

obrm / shops-api Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 52 KB

This repository contains the source code for the SHPOS API. It's built using Node.js, Express.js, and MongoDB.

JavaScript 100.00%
colors dotenv express mongodb mongoose morgan nodejs nodemon slugify

shops-api's Introduction

SHOPS API

This repository contains the source code for the Sops API. It's built using Node.js, Express.js, and MongoDB.

Getting Started

To get started with this project, clone the repository:

git clone https://github.com/obrm/shpos-api.git

Prerequisites

Make sure you have Node.js installed on your system.

MongoDB Atlas

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.

Installation

After cloning the repository, run the following command to install the required dependencies:

npm install

Local Environment Variables

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.

Running the Project

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.

License

This project is licensed under the MIT License.

shops-api's People

Contributors

obrm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shops-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.