Frontend for the Bible-APi.
Clone this repository.
git clone https://github.com/bryokim/bible-ui.git && cd bible-ui# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installSet BASE_URL env variable to the URL of the api. Get the URL after starting the api.
- Directly on terminal
# Use url generated when starting api
# If <PORT> is not set when starting the api, set to this URL.
export BASE_URL='http://localhost:8000'- Using a .env file
You can use a .env file.
# .env
export BASE_URL='http://localhost:8000'then
source .envStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run devNOTE:
bible-apiuses python3.12. You can usepyenvto manage your python version.
You need to clone the bible-api repository to
provide the API functionality.
git clone https://github.com/bryokim/bible-api.git && cd bible-api- poetry
poetry install- Pip and venv
pip install virtualenv # If not already installed
python3.12 -m venv env && source env/bin/activate
pip install -r requirements.txtSet BIBLE_UI_HOST env variable to allow CORS for your development server.
- Directly on the terminal
# Can change it to the url where your bible-ui will be running on
export BIBLE_UI_HOST='http://localhost:3000'- Using a .env file
You can use a .env file.
# .env
export BIBLE_UI_HOST='http://localhost:3000'then
source .env- Using poetry
# replace <PORT> with a valid available port
poetry run uvicorn src.main:app --reload --port <PORT>- If already in the venv
# replace <PORT> with a valid available port
uvicorn src.main:app --reload --port <PORT>The URL where the API is running should be used to set BASE_URL in bible-ui.
You can follow the documentation on bible-api for detailed setup.
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview