Docs
This commit is contained in:
@@ -1,73 +1,56 @@
|
|||||||
# Nuxt Minimal Starter
|
# PicHunt
|
||||||
|
|
||||||
|
> Create Quests and let others solve them by taking pictures!
|
||||||
|
|
||||||
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
||||||
|
|
||||||
|
## Infra
|
||||||
|
|
||||||
|
This project depends on a PostgreSQL database and a S3-compliant storage bucket, that has public read enabled. Redis is
|
||||||
|
not (yet) used, but may be used in the future for caching and/or synchronizing event streams for notifications.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Make sure to install dependencies:
|
Please use Jetbrains WebStorm and install the latest version of [Bun](https://bun.sh/).
|
||||||
|
|
||||||
```bash
|
### Dev environment
|
||||||
# npm
|
|
||||||
npm install
|
|
||||||
|
|
||||||
# pnpm
|
First copy the example `.env` file and change the settings to your liking:
|
||||||
pnpm install
|
|
||||||
|
|
||||||
# yarn
|
```shell
|
||||||
yarn install
|
cp .env.example .env
|
||||||
|
|
||||||
# bun
|
|
||||||
bun install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development Server
|
Now start the necessary services using `docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d` or
|
||||||
|
`bun run dev:up`.
|
||||||
|
|
||||||
Start the development server on `http://localhost:3000`:
|
Wait for a few seconds and then migrate the database:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
# npm
|
bun install
|
||||||
npm run dev
|
bunx prisma migrate deploy
|
||||||
|
```
|
||||||
|
|
||||||
# pnpm
|
Now you can start the web dev server:
|
||||||
pnpm dev
|
|
||||||
|
|
||||||
# yarn
|
```shell
|
||||||
yarn dev
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun run dev
|
bun run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Production
|
The development server listens on `http://localhost:3080`:
|
||||||
|
|
||||||
|
### Production
|
||||||
|
|
||||||
Build the application for production:
|
Build the application for production:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# npm
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm build
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn build
|
|
||||||
|
|
||||||
# bun
|
# bun
|
||||||
bun run build
|
bun run build -- --preset bun
|
||||||
```
|
```
|
||||||
|
|
||||||
Locally preview production build:
|
Locally preview production build:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# npm
|
|
||||||
npm run preview
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm preview
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn preview
|
|
||||||
|
|
||||||
# bun
|
# bun
|
||||||
bun run preview
|
bun run preview
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
- **Required**
|
- **Required**
|
||||||
- **Auth**
|
- **Auth**
|
||||||
- [ ] Flawless! Login (Email+Pw ohne bestätigung?)
|
- [x] Flawless! Login (Email+Pw ohne bestätigung?)
|
||||||
- [ ] Default random name
|
- [x] Default random name
|
||||||
- [ ] Change display name
|
- [ ] Change display name
|
||||||
- **Hunt Admin**
|
- **Hunt Admin**
|
||||||
- [ ] Start/Stop
|
- [ ] Start/Stop
|
||||||
- [ ] Add Reviews/Score
|
- [ ] Add Reviews/Score
|
||||||
- [ ] View best Answers and Pictures
|
- [ ] View best Answers and Pictures
|
||||||
- [ ] All/Best Images gallery
|
- [ ] All/Best Images gallery
|
||||||
|
- [ ] Manage teams (remove, kick, add)
|
||||||
- **Hunt User**
|
- **Hunt User**
|
||||||
- [x] Create Team
|
- [x] Create Team
|
||||||
- [x] Invite Members
|
- [x] Invite Members
|
||||||
@@ -38,8 +39,11 @@
|
|||||||
- [ ] i18n
|
- [ ] i18n
|
||||||
- [ ] Process image uploads (resize, remove EXIF, etc.)
|
- [ ] Process image uploads (resize, remove EXIF, etc.)
|
||||||
- [ ] Mark image as private
|
- [ ] Mark image as private
|
||||||
|
- [ ] Support chat
|
||||||
|
- [ ] Leave/Remove team
|
||||||
|
- [ ] Copy team from different hunt
|
||||||
- **General**
|
- **General**
|
||||||
- [ ] Pretty slugified urls
|
- [x] Pretty slugified urls
|
||||||
- [ ] SEO, Meta, Preview
|
- [ ] SEO, Meta, Preview
|
||||||
- [ ] Deployment `.on.hs-bremen.de`??
|
- [ ] Deployment `.on.hs-bremen.de`??
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -9,7 +9,9 @@
|
|||||||
"preview": "nuxt preview --host",
|
"preview": "nuxt preview --host",
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "nuxt prepare",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"check": "prettier --check ."
|
"check": "prettier --check .",
|
||||||
|
"dev:up": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d",
|
||||||
|
"dev:down": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml down"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/i18n": "^10.0.3",
|
"@nuxtjs/i18n": "^10.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user