Send password-protected messages to anyone, anywhere.
- Set up a new cluster with MongoDB Atlas. Create a database named
Kale
, and in it, create a collection namedMessages
. Take note of the Mongo URI (it should look something likemongodb+srv://USERNAME:[email protected]/?retryWrites=true&w=majority
), which will be used to connect to the cluster. - In Network Access, whitelist your IP if you are hosting locally. If you are hosting on the cloud,
Allow Access From Anywhere
. - Create a file named
.env
for storing envrionment variables, and store the Mongo URI asMONGO_URI
. The file should look something like this:
MONGO_URI=mongodb+srv://USERNAME:[email protected]/?retryWrites=true&w=majority
- In the console, run
npm i
to install the necessary packages, and then runnpm run
to start Kale!
- You can customize the name and icon by editing the the HTML files in the
views
folder. In particular, most of the necessary changes will be made in thehead
tag, as well as in theh1
tag in thebody
. - The colours can be customized by editing the first section of the
styles.css
file in thepublic
folder:
* {
--primary: #43a047;
--primary-hover: #388e3c;
--primary-focus: rgba(67, 160, 71, 0.125);
--primary-inverse: #FFF;
}
Kale uses PicoCSS, and you can find alternative color schemes here.