Getting started with Swanky Development using Github Codespace

Sequaja
3 min readAug 21, 2023

--

If you’re eager to dive into Swanky development, this guide will help you get up and running quickly. Here are the steps to start your journey:

1. Swanky CLI and Node Information
Start by familiarizing yourself with Swanky CLI and Swanky Node. These tools are essential for Swanky development. You can find detailed information about them on the Github (https://github.com/swankyhub/swanky-cli) and (https://github.com/swankyhub/swanky-node).

2. Explore Base Image and Dev Container
Take some time to explore the base image and development container that Swanky offers. These are crucial components for building your Swanky projects efficiently.

3. Creating a New Swanky Repository
Navigate to the [Swanky GitHub organization](https://github.com/swankyhub) and find the template repository that suits your needs. Create a new repository based on the template and choose an appropriate name for your project.

4. Check Your Repositories
Confirm that the new repository you just created appears on your GitHub profile’s [repositories tab](https://github.com/your-username?tab=repositories).

5. Setting Up Codespaces for Swanky Development
- Go to the repository you named in the previous step.
- Click on the “Code” dropdown menu and select “Codespaces.”
- Choose to create a new Codespace for your project.
- Once the setup is complete, you’ll have a fully configured GitHub Codespace that includes all the dependencies required for Swanky development.

You can now start developing within the browser.

6. Testing Swanky CLI in the Codespace
- Open the integrated terminal within your Codespace.
- Test if the Swanky CLI is properly installed by running the command:

swanky -h

If the command displays the help information, it means the CLI is set up correctly.

7. Initializing a New Swanky Project
- Assuming the CLI is working as expected, initiate a new Swanky project by running the following command:

swanky init myprojectswanky

Replace “myproject” with the desired name for your Swanky project.

Congratulations! You’re now set up to develop with Swanky. You have a fully functional development environment in your browser with all the dependencies you need. From here, you can start coding and building within the Swanky ecosystem.

swanky help

The “Swanky” help command displays all the available options for using Swanky commands.

Remember to refer to the official Swanky Docs (https://docs.astar.network/docs/build/wasm/swanky-suite/) for more detailed information and resources as you progress in your development journey. Happy coding!

--

--