Skip to content

speedcubing-ireland/speedcubingireland.com

Repository files navigation

Speedcubing Ireland

Vercel License: GPL v3

This is the repo which runs speedcubingireland.com.

Getting Started

Firstly, make sure you have git, a recent version of Node.js, and Bun installed. You can also use a github codespace to get started.

To clone and enter the repo, run:

git clone https://github.com/speedcubing-ireland/speedcubingireland.com.git
cd speedcubingireland.com

Then, install the dependencies:

bun install

You will need to set up a .env file in the root directory. You can use the .env.example file as a template.

To run the development server, run:

bun dev

Open http://localhost:3000 with your browser to see the result.

Testing

This project uses Vitest for testing. Use bun run to execute the npm scripts, as bun test invokes Bun's native test runner which is incompatible with Vitest APIs.

To run tests in watch mode:

bun run test

To run tests once:

bun run test:run

Pages

Pages are located in the pages directory. Each page is a React component exported from a .tsx file. The posts in the pages/posts are generated from the .mdx files. A basic post looks like this:

import Post from '../../components/posts/Post';

# Hello World
This is where the post content goes.

export default ({ children }) => <Post title="Post Title">{children}</Post>

About

The brains behind speedcubingireland.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors