Develop a versatile online store application that empowers businesses to sell products and services online while providing a seamless shopping experience for customers.
- User: User can create, read, update, and delete product.
- JavaScript
- Node
- Express
- dotenv
- mongoose
- nodemon
- express-async-error
- cookie-parser
- helmet
- express-rate-limit
- clone the repository
git clone [email protected]:olawuwo-abideen/store-api.git
- navigate to the folder
cd store-api.git
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.
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
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
👤 Olawuwo Abideen
- GitHub: @Olawuwo Abideen
- Twitter: @Olawuwo Abideen
- LinkedIn: @Olawuwo Abideen