Skip to content

Run API

Alvin Cheng edited this page Apr 28, 2023 · 5 revisions

Run Chill&chat API

The Chill&chat API is made with NodeJS please follow the steps to clone/run.

To clone:

git clone https://github.com/Chillandchat/api/

Eviroment file setup:

KEY= # Replace with custom API key.
DATABASE_URI= # Replace with MongoDB database URI.
PORT= # Replace with the 1. port number.
API_EMAIL= # Replace with email
API_EMAIL_PASS= # Replace with email password
GIPHY_KEY= # Replace with Giphy key

Build and run:

Yarn:

yarn && yarn build && yarn start # Installs packages, builds and starts the app with yarn

Npm:

npm install && npm build && npm start # Installs packages, builds and starts the app with npm

Note:

From v1.8.0, you must have ffmpeg installed on your machine to convert GIFs from mp4 video formats.

More information and download link: https://ffmpeg.org/

Clone this wiki locally