mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 15:18:32 -06:00
adding readme instructions
This commit is contained in:
34
README.md
34
README.md
@@ -4,12 +4,40 @@
|
||||
|
||||
<https://nowucca.com/2020/07/04/working-around-canvas-limitations.html>
|
||||
|
||||
## Getting Started and Usage
|
||||
## Getting Started and Usage (v3)
|
||||
|
||||
<!-- draft -->
|
||||
All class data files are stored in markdown files in a folder. I recommend making this folder a git repo. Here's an example docker compose:
|
||||
|
||||
```yml
|
||||
services:
|
||||
canvas_manager:
|
||||
image: alexmickelson/canvas_management:3
|
||||
user: "1000:1000"
|
||||
container_name: canvas-manager
|
||||
ports:
|
||||
- 3000:3000
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- storageDirectory=/app/storage
|
||||
- TZ=America/Denver
|
||||
- NEXT_PUBLIC_ENABLE_FILE_SYNC=true
|
||||
volumes:
|
||||
- ./globalSettings.yml:/app/globalSettings.yml
|
||||
- ~/projects/faculty:/app/storage
|
||||
- ~/projects/facultyFiles:/app/public/images/facultyFiles
|
||||
```
|
||||
|
||||
The `globalSettings.yml` file specifies which folders in your storage directory you want to display in the UI. This way you can have old classes files stored, but not bring them into the UI unless you need to (like when you are planning a new semester, you might want to see the old semester).
|
||||
|
||||
`globalSettings.yml` can start like this, this file will be edited as you add classes to manage.
|
||||
|
||||
```yml
|
||||
courses: []
|
||||
```
|
||||
|
||||
|
||||
### Enable Image Support
|
||||
## Enable Image Support
|
||||
|
||||
|
||||
You must set the `NEXT_PUBLIC_ENABLE_FILE_SYNC` environment variable to true. Images need to be available in the `/app/public/` directory in the container so that nextjs will serve them as static files. Images can also be set to public URL's on the web.
|
||||
|
||||
Reference in New Issue
Block a user