Passionate programmers standing to make a change
Note: uses static site generation with NextJS. As a consequence, updated data from the APIs (tweets, publications, etc) will only be visible after rebuilding/redeploying.
- set up a .env.local, use env.local.example as a template
npm inpm run dev- http://localhost:3000/codestar-website-next
- 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
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