https://github.com/laststance/laststance.io
Laststance.io Website
https://github.com/laststance/laststance.io
app-router nextjs server-components
Last synced: about 1 month ago
JSON representation
Laststance.io Website
- Host: GitHub
- URL: https://github.com/laststance/laststance.io
- Owner: laststance
- License: other
- Created: 2023-09-14T14:19:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T23:57:55.000Z (almost 2 years ago)
- Last Synced: 2024-04-22T11:02:11.988Z (almost 2 years ago)
- Topics: app-router, nextjs, server-components
- Language: TypeScript
- Homepage: https://www.laststance.io/
- Size: 14.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/ryota-murakami/laststance.io/actions/workflows/build.yml)
[](https://github.com/ryota-murakami/laststance.io/actions/workflows/typecheck.yml)
[](https://github.com/ryota-murakami/laststance.io/actions/workflows/lint.yml)
[](https://github.com/laststance/laststance.io/actions/workflows/playwright-chrome.yml)
[](https://github.com/laststance/laststance.io/actions/workflows/playwright-iPad-Pro-11.yml)
[](https://github.com/laststance/laststance.io/actions/workflows/playwright-iPhone-14.yml)
[](https://app.argos-ci.com/ryota-murakami/laststance.io/reference)
Laststance.io
The [Laststance.io](https://www.laststance.io/) website built using [Tailwind UI](https://tailwindui.com), [Tailwind CSS](https://tailwindcss.com) and [Next.js](https://nextjs.org).
## Getting started
First, [Node@22.x.x](https://nodejs.org/en) required and install the dependencies with [pnpm](https://pnpm.io/installation):
```bash
pnpm install
```
Next, create a `.env.local` file in the root of your project and set the `NEXT_PUBLIC_SITE_URL` and variable to your site's public URL.
And set the `PERSONAL_ACCESS_TOKEN` and [github personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) created by your Github account.
```
NEXT_PUBLIC_SITE_URL=https://example.com
PERSONAL_ACCESS_TOKEN=ghp_i{|i$AY%kt&)>p$Y@7:C[KC$anpxfJ
```
Next, run the development server:
```bash
pnpm dev
```
Finally, open [http://localhost:3000](http://localhost:3000) in your browser to view the website.
## Creating New Blog Posts
You can easily generate a new blog post template using the built-in script:
```bash
pnpm gen
```
This interactive CLI tool will:
1. Prompt you for a post title
2. Prompt you for a description
3. Generate a new MDX file with the correct frontmatter
4. Create the appropriate directory in `src/app/articles/`
The script automatically:
- Uses the current date (JST timezone)
- Creates a URL-friendly folder name based on the title
- Sets up the proper article layout and metadata
## License
This site template is a commercial product and is licensed under the [Tailwind UI license](https://tailwindui.com/license).
## Learn more
To learn more about the technologies used in this site template, see the following resources:
- [Tailwind CSS](https://tailwindcss.com/docs) - the official Tailwind CSS documentation
- [Next.js](https://nextjs.org/docs) - the official Next.js documentation
- [Headless UI](https://headlessui.dev) - the official Headless UI documentation
- [MDX](https://mdxjs.com) - the MDX documentation