This is a simple RESTful API for managing products and managing a cart, built with Node.js and Firebase.
- Node.js
- Express
- Firebase Realtime Database
Get all products.
Get a single product by ID.
Create a new product.
Update a product by ID.
Delete a product by ID.
Get all cart.
Add a product to the cart.
Update a product from cart.
Delete a product from cart.
To run this API on your local machine, you'll need to have Node.js and Firebase tools installed.
git clone https://github.com/isadoragalvaoss/api-products.git
cd api-products
yarn
Add your Firebase service account credentials to FIREBASE_CONFIG and FIREBASE_PROJECT_ID in the file .env root directory of the project.
yarn start
Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.