Skip to content

Developed a versatile online store application that empowers businesses to sell products and services online while providing a seamless shopping experience for customers.

Notifications You must be signed in to change notification settings

olawuwo-abideen/store-api

Repository files navigation

Storeapi

Develop a versatile online store application that empowers businesses to sell products and services online while providing a seamless shopping experience for customers.

Features

  • User: User can create, read, update, and delete product.

Built With:

  • JavaScript
  • Node
  • Express
  • dotenv
  • mongoose
  • nodemon
  • express-async-error
  • cookie-parser
  • helmet
  • express-rate-limit

Installation

  • clone the repository
git clone [email protected]:olawuwo-abideen/store-api.git
  • navigate to the folder
cd store-api.git

Run the app in development mode

Open a terminal window session, or the equivalent on your machine, and enter the following command to install all the Node modules needed to run the app:

npm install

After doing an npm install enter the following npm start command:

npm start

Set up the environment variables:

Create the .env file and setup the MongoDB URL.

The server will start running on the specified port (default: 3000) and establish a connection to the MongoDB database.

This will start the app and set it up to listen for incoming connections on port 3000. Open up your browser of choice and go to the url

http://localhost:3000

to start using the app.

API Endpoints

The following API endpoints are available:

  • BaseUrl https://localhost:3000/

  • POST /api/v1/products - Register a new product

  • GET /api/v1/products - Read a product

  • GET /api/v1/products/static - Read products by params such as name, price, company name and rating

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Authors

👤 Olawuwo Abideen

About

Developed a versatile online store application that empowers businesses to sell products and services online while providing a seamless shopping experience for customers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published