2.2 KiB
Sol Journal
A simple, minimal, journaling platform that works offline and across all devices. Installable as a PWA on mobile devices for easy access on a phone
🚀 Getting Started
Sol Journal uses firebase to support offline functionality and authentication, a new Firebase app will need to be setup with Firestore as a database, be sure to add documents for users and entries, as well as enabling email for user authentication.
Install dependencies:
npm install
or
yarn
Then configure a file in .env with the following keys from firebase:
REACT_APP_FIREBASE_API_KEY=<BUNCHofRandomNumbersAndChars>
REACT_APP_DEV_AUTH_DOMAIN=<your-id.firebaseapp.com>
REACT_APP_DEV_DATABASE_URL=<https://your-id.firebaseapp.com>
REACT_APP_DEV_PROJECT_ID=<your-id>
Navigate into the project directory, and then launch the site with this command:
yarn develop
The site will be opened up in your default browser on http://localhost:3000
Edit code in the /src, save your changes, and they'll reload instantly in the browser.
🧐 What's inside?
The minimal landing page starter comes with a few plugins installed already, but it's main focus is on staying simple and looking clean. These things are included by default:
- 🔥 Firestore: Cloud firestore persists registered users to a users document and saved journal entries to an entries document
- 🎨 Dark Theme: the
src/styles/theme.jsfile contains a set of colors and default styles that are applied to components with Emotion. A default light and dark theme are already in the file. - ➗ Functions: Firebase functions are initialized in the
functionsdirectory, serverless functions managed by Firebase can be setup here (note: with the free Spark plan, functions can't make requests to external API's like Algolia)
💫 Deploy
To create an optimized build of the site run this command:
yarn build
A /build folder will be assembled that can be deployed with this command:
firebase deploy
