First, run:
npm install
or
yarn install
Create .env.local
and copy everything from .env.example
.
Create firebase project and copy credentials into .env.local
.
Run the development server:
npm run dev
or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Open functions folder.
Run:
npm install
Edit and run :
firebase deploy --only functions
- Versions of every package do not change! They will not update by themself.
- Reason: I found the perfect versions for every package for them to be compatible.
- There are potential problems if you use
yarn
instead ofnpm
. In case there will be error deletenode_modules
,package-lock.json
,yarn.lock
, and usenpm
instead.