website
website copied to clipboard
Live at opensats.org
OpenSats.org
This is the codebase behind OpenSats.org.
Getting started
The website is a simple Next.js project bootstrapped with create-next-app. To run it locally you'll need Node.js 14.6.0 or newer. After cloning repository try following 3 commands in terminal:
npm run devfor running a development instance with hot-reloading, file watching and task re-runningnpm run buildfor compiling the project.npm startfor starting your app in production mode
If you start the website (either in development or production mode), you can access it on http://localhost:3000
Codebase organization
docs/projectshosts Markdown files for all the projects listed on the OpenSats websiteutilsfolder contains utility functions;md.tsis used for rending markdown content into pages using/pages/projects/[slug].tsx[slug].tsxworks by leveraging getStaticPaths and getStaticProps functions
- the rest of the folders are standard for Next.js
pagescontains files that correspond to individual pages on the websitecomponentshas common UI components used across the project
- all calls that work with secrets (talking to BTCPay and Stripe) are isolated in server side APIs
- take a look at
pages/api/btcpay.tsas an example
- take a look at
Contributing to the project
PRs are welcome! Fork the repository on your GitHub account, push changes to new feature branch and then open a new pull request on github.com/OpenSats/website/pulls.
Thanks for supporting OpenSats!