🚀 Thanks to StackBlitz, you can now try Rakkas online, right in your browser!
The easiest way to try Rakkas out on your computer is to use the project initializer:
# Create the project directory mkdir my-app && cd my-app # Scaffold the demo app: Follow the prompts for the rest npx create-rakkas-app@latest
create-rakkas-app project initializer comes with many features, all off which are optional but we strongly recommend enabling TypeScript and the generation of a demo project on your first try because self-documenting type definitions allow for a smoother learning curve and the demo project source code comes with plenty of comments. You may not need this guide!
👷 If you prefer a manual setup, you can install
react-helmet-asyncas production dependencies, and
@rakkasjs/clias a dev dependency:
npm install --save rakkasjs react react-dom react-helmet-async npm install --save-dev @rakkasjs/cli
Then you can start a development server on
npx rakkas dev, build with
npx rakkas build, and launch with
create-rakkas-app generates a project with the following structure:
|npm package file|
|Rakkas configuration file|
|Static files to be served from |
|Client-side customization hooks|
|Server-side customization hooks|
|Pages and layouts (client-side routes)|
|Endpoints and middlewares (server-side routes)|
¹ These files will have TypeScript extensions if you enable TypeScript support.