Brock App is a modern, full-stack application built with an Expo app for the frontend and a Node.js API for the backend. The Expo app provides a user-friendly interface for end-users, while the API handles data processing and serves as the backend logic of the application.
- Introduction
- Tech Stack
- Prerequisites
- Setup Instructions
- Deploying to Koyeb
- Project Structure
- Contributing
- License
- Frontend: Expo (React Native)
- Backend: Node.js, Express
- Database: Prisma
- Hosting: Koyeb
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed on your local machine
- An Expo account and the Expo CLI installed
- A Koyeb account
- (Specify other prerequisites if needed)
-
Clone the repository:
git clone <repository-url> cd brock-app-master
-
Install dependencies:
npm install
-
Set up environment variables:
Copy the
.env.example
file to.env
and fill in the required variables.cp .env.example .env
-
Run the API:
cd apps/api npm start
-
Run the Expo app:
Open a new terminal window and navigate to the project root.
cd apps/expo expo start
-
Sign in to your Koyeb account.
-
Create a new app:
- Click on "Create App".
- Choose "GitHub" as the source and select the repository.
-
Configure build settings:
- Build Command:
npm install && npm run build
- Start Command:
npm start
- Build Command:
-
Set environment variables:
Add the environment variables from your
.env
file in the Koyeb dashboard. -
Deploy the app:
Click on "Deploy" to start the deployment process. Once the deployment is complete, your app will be live.
The project is organized into the following directories:
- apps: Contains the main applications (API and Expo).
api
: The backend API built with Node.js and Express.expo
: The frontend mobile application built with Expo.
- packages: Shared packages and modules used by the applications.
- tooling: Configuration and scripts for development and deployment.
We welcome contributions! Please read our Contributing Guidelines before submitting a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.