Skip to content

🥬 Send password-protected messages to anyone, anywhere.

Notifications You must be signed in to change notification settings

yusufrahmn/Kale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥬 Kale

Send password-protected messages to anyone, anywhere.

Kale Homepage Kale Password Entry Kale Message

Hosting Your Own Instance of Kale

  1. Set up a new cluster with MongoDB Atlas. Create a database named Kale, and in it, create a collection named Messages. Take note of the Mongo URI (it should look something like mongodb+srv://USERNAME:PASSWORD@kale.hyf24nk.mongodb.net/?retryWrites=true&w=majority), which will be used to connect to the cluster.
  2. In Network Access, whitelist your IP if you are hosting locally. If you are hosting on the cloud, Allow Access From Anywhere.
  3. Create a file named .env for storing envrionment variables, and store the Mongo URI as MONGO_URI. The file should look something like this:
MONGO_URI=mongodb+srv://USERNAME:PASSWORD@kale.hyf24nk.mongodb.net/?retryWrites=true&w=majority
  1. In the console, run npm i to install the necessary packages, and then run npm run to start Kale!

Customizing Your Instance of Kale

  1. 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 the head tag, as well as in the h1 tag in the body.
  2. The colours can be customized by editing the first section of the styles.css file in the public 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.