Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-star/codestar-website-next
Codestar blog
https://github.com/code-star/codestar-website-next
Last synced: about 2 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T08:28:04.000Z (about 1 year ago)
- Last Synced: 2023-12-07T09:29:05.513Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://code-star.github.io
- Size: 898 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![test](https://github.com/code-star/codestar-website-next/actions/workflows/test.yml/badge.svg)](https://github.com/code-star/codestar-website-next/actions/workflows/test.yml)
[![prod](https://github.com/code-star/codestar-website-next/actions/workflows/prod.yml/badge.svg)](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 test environment at https://code-star.github.io/codestar-website-next/ by Github Actions. This is served on Github pages from the `gh-pages` branch on this repo.
Merges to the `production` branch are automatically deployed to the production environment at https://code-star.github.io by Github Actions. This is served 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