Prerequisites
Welcome to SeqFlow Get Started section!
Here, you can find the basic concept of the framework and how it can help your development. If you are looking for a deep analysis of the reason, there's a dedicated page here.
Are you looking for more complex examples? Check the examples page.
Prerequisites
Before we start, you need to have installed the following tools:
You can still use npm
or yarn
, but we haven't tested it with these tools. If you encounter any issues, let us know.
Project creation
The first step to start a new project is to create it using the CLI. The command is:
This command will ask you some questions about the project, like where to place the project.
For the purpose of this documentation, we will use the empty template, but you can choose another one running the previous command without --template empty
argument.
You will see some files and folders when you open the project folder. The most important are:
src/index.css
: the main CSS filesrc/index.html
: the main HTML filesrc/index.ts
: the entrypoint filesrc/Main.module.css
: the CSS module file forMain
componentsrc/Main.tsx
: the Main componentpackage.json
: the dependencies and devDependencies are fulfilledbiome.json
: the project formatter configurationvite.config.js
: the Vite configuration filevitest.config.ts
: the Vitest configuration file. We will talk about it latertests/index.test.ts
: the test file. The test part is covered in this tutorial
For now, we will focus only on the src/Main.tsx
file. You can split the file content into multiple files, but for this example, we will keep everything in the same file for copy-paste reasons.
Run it locally
Before we start, let's install the dependencies. Run the command pnpm install
to install the dependencies.
Let's start the application and see the result. Run the command pnpm start
.
Open your browser and go to http://localhost:5173. You should see a blank page with a text.
Conclusion
In this tutorial, we have learned how to create a simple application using SeqFlow and how to run it locally.
Anyways, we are not done yet. Let's move on: our goal is to write an application that shows random quotes fetched from an endpoint.