A chat application built with NextJS, Firebase, and Pusher. Click here to view the live demo.
- Create a
.envfile in the root of the project and add the following:
API_URL= # The URL of your configured firebase functions
NEXT_PUBLIC_PUSHER_KEY= # Your Pusher key
NEXT_PUBLIC_PUSHER_CLUSTER= # Your Pusher cluster- Create another
.envfile in thefunctionsdirectory and add the following:
PUSHER_APP_ID= # Your Pusher app ID
PUSHER_KEY= # Your Pusher key
PUSHER_SECRET= # Your Pusher secret
PUSHER_CLUSTER= # Your Pusher cluster- Install the dependencies:
yarn
# or
npm install- Run the Firebase functions:
cd functions
yarn serve
# or
npm run serve- Run the development server:
yarn dev
# or
npm run dev