add header

This commit is contained in:
simon 2022-04-23 00:46:30 +07:00
parent 7b5903c12c
commit 74f562c3cf
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -1,11 +1,14 @@
# Tube Archivist Frontend
This repo is WIP, recreation of [Tube Archivist](https://github.com/tubearchivist/tubearchivist) frontend in NextJS/React.
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Setup your environment ## Setup your environment
- Clone the `feat/react-frontend` branch, base folder of the frontend is in `tubearchivist/www` Copy *.env.local.example* to *.env.local* and set:
- Copy *.env.local.example* to *.env.local* and set: - **NEXTAUTH_SECRET**: Some long random string
- **NEXTAUTH_SECRET**: Some long random string - **NEXTAUTH_URL**: Your frontend, most likely `http://localhost:3000`
- **NEXTAUTH_URL**: Your frontend, most likely `http://localhost:3000` - **NEXT_PUBLIC_TUBEARCHIVIST_URL**: Your Tube Archivist backend testing server, e.g. `http://localhost:8000`
- **NEXT_PUBLIC_TUBEARCHIVIST_URL**: Your Tube Archivist backend testing server, e.g. `http://localhost:8000`
## Getting Started ## Getting Started