This project was developed based on the library @adiwajshing/baileys for handling whatsapp chats, and uses Firestore, a database NoSql from Firebase.
This application aims at automated fulfillment and order management.
- customer registration
- order management
- address registration
- order registration and shipment to production
- order cancellation
- run the command:
git clone https://github.com/jrCleber/bot-baileys-firebase.git
- create a new project in firebase, select the firestore and configure the database
- then click on project settings -> accounts and services -> generate a new private key
- save the key in the path ./firebase/token/ with the following name: serviceAccountKey.json
- install dependencies:
- with package manager yarn, run the command:
yarn
oryarn install
- with npm, run the command:
npm install
- with package manager yarn, run the command:
- to start the app:
- with yarn run:
yarn start:app
- with npm run:
npm run start:app
↳ both commands above will create transpile the code, saving it in the dist folder yarn dev
ornpm run dev
will run the code in developer mode; with code transpilation at runtime
- with yarn run:
- All right now. HAVE A GOOD TIME!
This application does not manage payments, routing to attendants and general edits.