docs: update (#222)
This commit is contained in:
@@ -4,22 +4,6 @@ sidebar_position: 2
|
||||
|
||||
# Backend
|
||||
|
||||
## Environmental variables
|
||||
|
||||
:::warning[Strongly Recommended]
|
||||
|
||||
Although the system will work with default settings without setting environment variables, it is strongly recommended to set SECRET_KEY in production.
|
||||
|
||||
:::
|
||||
|
||||
Create `.env` File on `backend/`
|
||||
|
||||
```.env
|
||||
FRONTEND_ORIGIN=http://localhost:8000
|
||||
PORT=8001
|
||||
SECRET_KEY=your-secret-key
|
||||
```
|
||||
|
||||
## Set up database
|
||||
|
||||
```bash
|
||||
|
||||
@@ -4,20 +4,6 @@ sidebar_position: 3
|
||||
|
||||
# Frontend
|
||||
|
||||
## Environmental variables
|
||||
|
||||
:::info
|
||||
|
||||
Although the system will work with default settings without setting environment variables, but you can override the settings by setting environment variables.
|
||||
|
||||
:::
|
||||
|
||||
Create `.env` File on `frontend/`
|
||||
|
||||
```
|
||||
NEXT_PUBLIC_BACKEND_ORIGIN=http://localhost:8001
|
||||
```
|
||||
|
||||
## Start frontend server with dev mode
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user