pttbbs
PTT BBS의 소스 코드
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기The Laravel.io Community Portal.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗This is the repository for the Laravel.io community portal. The code is entirely open source and licensed under the MIT license. We welcome your contributions but we encourage you to read the contributing guide before creating an issue or sending in a pull request. Read the installation guide below to get started with setting up the app on your machine.
We'd like to thank these amazing companies for sponsoring us. If you are interested in becoming a sponsor, please visit the Laravel.io GitHub Sponsors page.
The following tools are required in order to start the installation.
Note that you're free to adjust the
~/Sites/laravel.iolocation to any directory you want on your machine.
git clone [email protected]:laravelio/laravel.io.git ~/Sites/laravel.iocomposer install to install the PHP dependencieslaravelcomposer setup to setup the applicationphp artisan serve to start the local development servertesting database in MySQL so you can run the test suiteYou can now visit the app in your browser by visiting http://localhost:8000. If you seeded the database you can login into a test account with testing & password.
To get GitHub authentication to work locally, you'll need to register a new OAuth application on GitHub. Use http://localhost:8000 for the homepage url and http://localhost:8000/auth/github for the callback url. When you've created the app, fill in the ID and secret in your .env file in the env variables below. You should now be able to authentication with GitHub.
GITHUB_ID=
GITHUB_SECRET=
GITHUB_URL=http://localhost:8000/auth/github
To get Algolia search running locally, you'll need to register for a new account and create an index called threads. Algolia has a free tier that satisfies all of the requirements needed for a development environment. Now update the below variables in your .env file. The App ID and secret keys can be found in the API Keys section of the Algoila UI.
SCOUT_DRIVER=algolia
SCOUT_QUEUE=true
ALGOLIA_APP_ID=
ALGOLIA_SECRET="Use the Write API Key"
VITE_ALGOLIA_APP_ID="${ALGOLIA_APP_ID}"
VITE_ALGOLIA_SECRET="Use the Search API Key"
VITE_ALGOLIA_THREADS_INDEX=threads
VITE_ALGOLIA_ARTICLES_INDEX=articles
VITE_ALGOLIA_USERS_INDEX=users
In order to index your existing threads, run the following command:
php artisan scout:import App\\Models\\Thread
New threads will be automatically added to the index and threads which get updated will be automatically synced. If you need to flush your index and start again, you can run the following command:
php artisan scout:flush App\\Models\\Thread
To enable published articles to be automatically shared on X, you'll need to create an app. Once the app has been created, update the below variables in your .env file. The consumer key and secret and access token and secret can be found in the Keys and tokens section of the X developers UI.
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_SECRET=
To do the same for Bluesky you simply need to set up the app keys with your login and password:
BLUESKY_USERNAME=
BLUESKY_PASSWORD=
Approved articles are shared in the order they were submitted for approval. Articles are shared twice per day at 14:00 and 18:00 UTC. Once an article has been shared, it will not be shared again.
Laravel.io can notify maintainers of newly submitted articles through Telegram. For this to work, you'll need to set up a Telegram bot and obtain a token. Then, configure the channel you want to send new article messages to.
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHANNEL=
To enable view counts on articles, you'll need to register a Fathom Analytics account and install it on the site. You will then need to create an API token and find your site ID before updating the below environment variables in your .env file.
FATHOM_SITE_ID=
FATHOM_TOKEN=
To make sure article and user header images get synced into the database we'll need to setup an access key from Unsplash. Please note that your Unsplash app requires production access.
UNSPLASH_ACCESS_KEY=
After that you can add an Unsplash photo ID to any article row in the hero_image_id column and run the sync command to fetch the image url and author data:
php artisan lio:sync-article-images
| Command | Description |
|---|---|
vendor/bin/pest -p | Run the tests with parallel execution |
php artisan migrate:fresh --seed | Reset the database |
npm run dev | Build and watch for changes in CSS and JS files |
The Laravel.io portal is currently maintained by Dries Vints and Joe Dixon. If you have any questions please don't hesitate to create an issue on this repo.
Please read the contributing guide before creating an issue or sending in a pull request.
Please read our Code of Conduct before contributing or engaging in discussions.
Please review our security policy on how to report security vulnerabilities.
The MIT License. Please see the license file for more information.