https://github.com/code-star/codestar-website-next
Codestar blog
https://github.com/code-star/codestar-website-next
Last synced: 4 months ago
JSON representation
Codestar blog
- Host: GitHub
- URL: https://github.com/code-star/codestar-website-next
- Owner: code-star
- Created: 2022-10-07T18:19:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T12:36:12.000Z (5 months ago)
- Last Synced: 2025-02-14T13:24:49.540Z (5 months ago)
- Language: TypeScript
- Homepage: https://code-star.github.io
- Size: 914 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/code-star/codestar-website-next/actions/workflows/staging.yml)
[](https://github.com/code-star/codestar-website-next/actions/workflows/prod.yml)
_Passionate programmers standing to make a change_
---
# Codestar blog
Note: uses static site generation with [NextJS](https://nextjs.org/). As a consequence, updated data from the APIs (tweets, publications, etc) will only be visible after rebuilding/redeploying.
## Developing
- set up a .env.local, use env.local.example as a template
- `npm i`
- `npm run dev`
- http://localhost:3000/codestar-website-next## Building
- set up a .env.local, use env.local.example as a template
- `npm i`
- static build: `npx next build && npx next export`
- serve static build `serve -p 5000 out/`
- http://localhost:5000## Deploying
Merges to the `main` branch are automatically deployed to the staging environment at https://staging.codestar.nl/ by Github Actions. This is hosted on Github pages.
Merges to the `production` branch are automatically deployed to the production environment at https://code-star.github.io by Github Actions. This is hosted on Github pages from the `main` branch on the https://github.com/code-star/code-star.github.io repo.
Settings for Github Actions:
- Under github.com > settings > security/secrets > actions > add new repository secret:
- TWITTER_ACCESS_TOKEN
- TWITTER_USER_NAME
- YOUTUBE_API_KEY
- YOUTUBE_PLAYLIST_ID
- MASTODON_ACCESS_TOKEN
- MASTODON_ID
- Also make sure a mapping exists for each key in test.yml and prod.yml