概要
Next.js App Routerで構築した、シンプルなGitHubクローンです。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルA simple clone of github in Next.JS
A simple github alternative open source on github (ironic right ?), it aims is to be fully functionnal with some of the core features of github working.
See #84 for more info on the supported features.
⚠️ THIS PROJECT IS IN ACTIVE DEVELOPMENT ⚠️
Expect stuff to break.
Roadmap
Click to see more
- Login/Logout
- HomePage (README content)
- Responsive Layout
- Settings page for toggling theme
- Stargazers Page
- See Profile informations
- Update username
- Change theme
- User detail page
- Issues List page
- Search & filter issues by author, label, assignee, closed/open, title, mentions, etc. (Inspiration: https://github.com/openstatusHQ/openstatus, https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)
- New issue page
- Issue CRUD (by the author only)
- Comments CRUD
- Mentions
- Issue Popovers (for previewing issues)
- Linking between issues
- Assign & self assign issues
- OpenGraph
- landing (inspiration: https://github.com/trpc/trpc/blob/main/www/og-image/pages/api/landing.tsx)
- Per repository
- Per user
- Per Issue (inspiration: https://opengraph.githubassets.com/101e5bdeef8e959c800fab2aef88eef0b01b15d883e3e17c990bde8dfd67d6b3/trpc/trpc/issues/4306)
- Labels CRUD (can only add or update labels, no deleting)
- Notifications page
- Notifications badge (Inspiration: https://gist.github.com/Fredkiss3/ab918aee3977d681f0508537a44838c0, https://github.com/Fredkiss3/bunrest)
- Notifications for issues subscriptions
- Notifications for mentions
- Notifications for issue statuses
- Filter notifications by status, title, closed, etc.
- Mark as done, unsubscribe
- files hosting for repos (with a storage limit)
- file browsing UI
- file searching
- Repository list
- list of repos
- search for repos
- Git web UI
- commit history
- time travel
- support
git pushandgit remotecommands
- issue kanban board (like github projects), to close an issue either with a commit or from the UI
- CI/CD
- running CI with docker, we can take inspiration from gitlab
Stack
- Next App Router
- drizzle + local Postgres database
- Hosted to a custom VPS, see the CI/CD workflow for how it is all deployed
- tailwindCSS for the styling
Requirements
- Node >= v18.x
- pnpm >= v8.x
- docker installed for local development
- A registered github app for authenticating users
🚀 How to work on the project ?
First you have to clone the repository
git clone https://github.com/Fredkiss3/gh-next.gitStart the docker compose instance to start the DB + redis instance :
docker-compose up -d --remove-orphansInstall the dependencies :
pnpm installRename
.env.exampleto.env.localAnd change the file to your needs,And launch the project :
pnpm run devThe app will show at http://localhost:3000.
Open the source code and start rocking ! 😎
🧐 Project structure
A quick look at the top-level files and directories you will see in this project.
.
├── src/
│ ├── app
│ ├── actions
│ ├── components
│ ├── models
│ └── lib/
│ ├── client
│ ├── server
│ └── shared
├── biome.json
├── pnpm-lock.yaml
└── tsconfig.json
src/app/: this folder contains all the routes & pages of our app.src/actions: this folder contains all the logic of our app.src/components: this folder contains all the components of our app.src/models: this folder contains all the DB models of our app.src/lib/: this folder contains utils & helpers used throughout our app :client: this folder contains all the utilities that are client-only, usually used by client components. It contains mainly hooksserver: this folder contains all the utilities that are server-only, for use within server components and server actions. It also contains the DB schemas insidedb/schemashared: this folder contains all the utilities that are shared between the server & client, these can be used anywhere in the app.
biome.json: this file contains the configuration for biome to enable autoformatting.pnpm-lock.yaml: this file contains the dependencies lock for the repo.tsconfig.json: this file contains the configuration for typescript, that are used by the all the underlying packages
🍳 ENV VARIABLES USED
| Nom | role |
|---|---|
SESSION_SECRET |
random 32 chars length string used to encode the session id |
REDIS_HTTP_URL |
The URL to the connect to redis HTTP for a key/value store |
DATABASE_URL |
The URL to the connect to the Postres Database |
REDIS_HTTP_USERNAME |
LOCAL file server URL for storing key values |
REDIS_HTTP_PASSWORD |
LOCAL file server URL for storing key values |
GITHUB_CLIENT_ID |
github client id stored for our app used for authenticating users with github |
GITHUB_PERSONAL_ACCESS_TOKEN |
github client token stored for our app used for authenticating users with github |
GITHUB_REDIRECT_URI |
URL to redirect when a user has been authenticated |
GITHUB_SECRET |
github secret stored for our app |
関連プロジェクトを探す
読み込み中…