The Grocery Store API is a robust and feature-rich RESTful API designed to facilitate the management of products within a grocery store. Built using JavaScript, Node.js, Express, MongoDB, and jQuery Mobile, this API offers a comprehensive CRUD (Create, Read, Update, Delete) interface for interacting with product data. It is hosted with FL0.
GET /
: Retrieve all products.GET /:bc
: Retrieve a specific product by barcode.GET /delete/:bc
: Retrieve a specific product to delete by barcode.POST /
: Insert a new product.POST /:bc
: Update an existing product by barcode.
- chalk: ^5.3.0
- ejs: ^3.1.9
- express: ^4.18.2
- mongoose: ^8.1.1
- morgan: ^1.10.0
- dotenv: ^16.4.1
- nodemon: ^3.0.3
To get started with the Grocery Store API, follow these steps:
- Clone the repository to your local machine.
- Install dependencies using
npm install
. - Create a
.env
file and configure environment variables as needed. - Start the server using
npm start
. - Access the API endpoints to manage products.
The Grocery Store API is ready for deployment. Simply host it on your preferred platform and ensure that environment variables are appropriately configured.
Contributions to the project are welcome! To contribute, fork the repository, make your changes, and submit a pull request.
This project is under the MIT License. Please refer to the LICENSE file for more details.
If you have questions, suggestions, or comments, don't hesitate to get in touch with me. You can reach me at my social media.
I hope you find this repository useful for learning and practicing. If you have any questions or need assistance, please feel free to contact me. Enjoy exploring my GitHub profile!
Thank you for considering the Grocery Store API!