Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course content #13

Open
bvpav opened this issue Apr 19, 2023 · 0 comments
Open

Course content #13

bvpav opened this issue Apr 19, 2023 · 0 comments
Assignees

Comments

@bvpav
Copy link
Member

bvpav commented Apr 19, 2023

Dockerfile-ове

Трябва да се съставят Dockerfile-овете за курсовете ни.

Можем да ги пазим в следната файлова структура:

packages/
└── courses
    └── content
        ├── cybersecurity-10
        │   └── Dockerfile
        └── second-course
            └── Dockerfile

Това е защото на по-късен етап можем лесно да прибавим останалите данни в файлове, съседни на Dockerfile-овете:

packages/
└── courses
    └── content
        ├── cybersecurity-101
        │   ├── Dockerfile
        │   ├── summary.md
        │   ├── intro.md
        │   ├── course.yml
        │   └── questions.yml
        └── second-course
            ├── Dockerfile
            ├── summary.md
            ├── intro.md
            ├── course.yml
            └── questions.yml

...и да направим package, който експортва тези данни като JS object, така че да можем лесно да го импортваме в останалите модули.

Course ID-та в seed-а

Добре е да променим ID-тата на курсовете в seed.mjs да са неща като cybersecurity-101, а не нечетими id-та като alf0znrxk0000uijgewvtgdsa. Това ще направи URL-ите на NextJS приложението по-четими и SEO friendly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants