- We used generative AI in this project. Artifacts and other documents where we used generative AI contain a note about the source and a link to the conversation.
npm install -g firebase-tools
firebase tools for CLI. // Required only for the first time.
-
cd agrilens-backend/functions
- Run
npm i
to install newly added packages.
-
- Run
npm run serve
// The command will excutefirebase emulators:start --only functions
- Run
-
- The api endpoints will be activated at
http://127.0.0.1:5001/agrilens-web/us-central1/app
- The api endpoints will be activated at
npm init -y
npm i express
npm i firebase-admin
npm i nodemon
npm i dotenv
npm install -g firebase-tools
firebase init functions
npm run server // Localhost serve
firebase deploy
// Deploys functions/
directory.
firebase deploy --only functions
// Deploys only the functions