A platform for humans around the world to share and read words of encouragement!
Website »
Table of Contents
I got the inspiration to make this project when I gave my dad a similar gift for our Christmas 2020 gift exchange. I wrote words of encouragement on little pieces of paper and put them in a jar, which you can take and read if you need.
Frontend:
Backend:
Here is a guide if you want to clone my website and modify it for yourself, all the way to deployment.
- Clone the repo
git clone https://github.com/AjayLiu/inspiration-jar.git
- Install packages
yarn cd client yarn cd ../server yarn
- Create a PostgreSQL databse (I used AWS)
- Create a
.env
file in the /server folder and fill in the following info for the backend to function properly (PG = postgres)PG_HOST = PG_DATABASE = PG_USER = PG_PORT = PG_PASSWORD = DATABASE_URL= GOOGLE_CLIENT_ID = GOOGLE_CLIENT_SECRET = SESS_NAME = (doesnt really matter) SESS_SECRET = (some random gibberish) DISCORD_WEBHOOK_URL = ADMIN_EMAIL =
To run the development server
yarn dev
Then head over to localhost:3000
- Publish the site on Heroku using continuous git integration.
- Enter in the environment variables (
.env
) in Heroku via Heroku's CLI or through the website dashboard.
- Publish the site on Render using continuous git integration.
- Paste the contents of your
.env
file into Render's environment tab.
Distributed under the MIT License. See LICENSE
for more information.
Ajay Liu - [email protected]
Project Link: https://github.com/AjayLiu/inspiration-jar