BGIN's (new) official website powered by Next.js and TailwindCSS.
With simple, popular management workflow.
from https://nodejs.org/en/download
$ sudo npm install -g npm
https://docs.github.com/en/get-started/quickstart/hello-world
also see cheatsheets
$ git clone git@github.com:bgin-global/bgin-homepage.git
$ cd bgin-homepage
$ npm i
$ npm run dev
Open http://localhost:3000 with your browser to see the result.
When you push to any branch and create a pull request, the app will be automatically deployed to test.
When you push to main
branch, the app will be automatically deployed to production.
This section explains the management workflow when you want to create/edit the events, working groups, documentations.
You can edit the markdown files under the folder contents/
directly, and update the news when reflecting the changes to GitHub.
The example steps of the workflow are below↓
$ git clone git@github.com:bgin-global/bgin-homepage.git
$ cd bgin-homepage
$ git checkout -b yourname-001
Create contents/**/~~~.md
and edit it. Please set the same top metadata as the other md files.
For instance, event's metadata is like:
---
title: "Blockchain Summit 2023"
date: "2023 Mar. 29"
location: "New York, US"
---
All files follows markdown format.
$ git add .
$ git commit -m"what you changed"
$ git push origin HEAD
then, go to the GitHub and create new Pull Request.
Your updates will be reflected to preview site automatically. Plz check the link and review it.
If the updates is file, merge the branch to main
.
Then, deployment will run.
After updating, please renew your main.
$ git checkout main
$ git pull origin main
- Go to ./contents/next-call-ts
- Modify the parameter
nextCall
- Push
If you have a question, plz feel free to contact to @0xvon