This is a simple journaling app with a backend built using Node.js, Express.js, TypeScript, and PostgreSQL, and a mobile frontend built using React Native.
- Node.js
- PostgreSQL
- npm
- Expo Go App - on your mobile phone
-
Clone the repository:
git clone https://github.com/brianMunyao/reflekt.git cd reflekt/backend
-
Install dependencies:
npm install # or yarn install
-
Set up environment variables:
Create a
.env
file in thebackend
folder and add the following variables: Copy the values in the .env.example file and update with the correct values for your environment -
Run database migrations:
npm run migrate # or yarn migrate
-
Start the backend server:
npm run dev # or yarn dev
-
Navigate to the mobile directory
cd reflekt/mobile
-
Install dependencies
npm install
-
Set up environment variables:
Create a
.env
file in themobile
folder and add copy the values in the .env.example file and update with the correct values for your environment -
Start the app
npm start
This command will start the Expo CLI and launch the development server. You'll see a QR code and a Metro Bundler interface in your terminal or default browser.
-
Open Expo Go App:
On your mobile device, open the Expo Go app.
-
Scan the QR Code:
Use the Expo Go app to scan the QR code displayed in the terminal or Metro Bundler interface.
-
View Your App:
Once scanned, your Expo app will load on your mobile device. Any changes you make to your code will automatically refresh in the Expo Go app.