Files
cms.fellies.org/docs/getting-started.md

55 lines
758 B
Markdown

# Getting Started
## Install
```bash
bun install
```
## Environment
```bash
cp .env.example .env
```
## Database
```bash
bun run db:generate
bun run db:migrate
bun run db:seed
```
Create a named migration:
```bash
bun run db:migrate:named -- --name your_migration_name
```
Reset local dev DB:
```bash
bun run db:reset:dev
```
## Run apps
```bash
bun run dev
```
- Web: `http://localhost:3000`
- Web locale switching: use the language switcher in the page header
- Admin: `http://localhost:3001`
- Admin welcome (first start): `http://localhost:3001/welcome`
- Admin login: `http://localhost:3001/login`
- Admin register (when enabled): `http://localhost:3001/register`
## Run docs
```bash
bun run docs:dev
```
- Docs: `http://localhost:4173`