<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christian Letter</title>
    <description>The latest articles on DEV Community by Christian Letter (@chrisletter).</description>
    <link>https://dev.to/chrisletter</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F937897%2F0c2d7198-3d68-45f4-b0e7-837204fae76f.jpeg</url>
      <title>DEV Community: Christian Letter</title>
      <link>https://dev.to/chrisletter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chrisletter"/>
    <language>en</language>
    <item>
      <title>Rocket and web components</title>
      <dc:creator>Christian Letter</dc:creator>
      <pubDate>Tue, 11 Oct 2022 20:22:01 +0000</pubDate>
      <link>https://dev.to/ficusjs/rocket-and-web-components-2eao</link>
      <guid>https://dev.to/ficusjs/rocket-and-web-components-2eao</guid>
      <description>&lt;p&gt;&lt;a href="https://rocket.modern-web.dev"&gt;Rocket&lt;/a&gt; is a tool used for creating web pages and it is fabulous for generating static content starting from markdown files. One of the cool thing about Rocket is the fact that web components and javascript can be used inside the markdown files.&lt;br&gt;
​&lt;br&gt;
Creating a project with Rocket is quite straightforward, you can take a look at the &lt;a href="https://rocket.modern-web.dev/docs/"&gt;documentation&lt;/a&gt; or if you like to learn by looking at examples, you can find good ones in the &lt;a href="https://github.com/modernweb-dev/rocket/tree/main/examples"&gt;Rocket’s GitHub repository&lt;/a&gt; .&lt;br&gt;
​&lt;br&gt;
This guide is created for getting you started with Rocket and &lt;a href="https://docs.ficusjs.org/"&gt;FicusJS&lt;/a&gt;. FicusJS is a set of lightweight functions for developing applications using web components.&lt;br&gt;
​&lt;br&gt;
Using the &lt;a href="https://github.com/ficusjs/create-ficus-app"&gt;Create Ficus App&lt;/a&gt; CLI you can quickly scaffold a project that contains a basic structure for working with Rocket and FicusJS.&lt;br&gt;
​&lt;br&gt;
The project will contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rocket development set-up&lt;/li&gt;
&lt;li&gt;FicusJS web components&lt;/li&gt;
&lt;li&gt;Unit testing with  &lt;a href="https://dev.to/ficusjs/unit-testing-web-components-with-ava-and-jsdom-2ofp"&gt;Ava and JSDom&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;​&lt;br&gt;
Create Ficus App lets you focus on code, not build tools. It also gives you an idea of how you should structure your project, which can be useful if this is the first time that you are using Rocket or FicusJS.&lt;br&gt;
​&lt;br&gt;
To create a new project called “my-app”, run this command:&lt;br&gt;
​&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-ficus-app my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;​&lt;br&gt;
Using the arrow keys, select “rocket-app” and then press enter. Once the &lt;code&gt;my-app&lt;/code&gt; folder is created, you can install the dependencies and start the project with the following commands:&lt;br&gt;
​&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd  &lt;/span&gt;my-app
​
&lt;span class="c"&gt;# install the dependencies using npm or yarn&lt;/span&gt;
npm &lt;span class="nb"&gt;install
&lt;/span&gt;yarn
​
&lt;span class="c"&gt;# start the project&lt;/span&gt;
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;​&lt;/p&gt;

&lt;h2&gt;
  
  
  Starter Projects
&lt;/h2&gt;

&lt;p&gt;​&lt;br&gt;
If you ran the previous commands you probably noticed that Create Ficus App offers a selection of starter projects:&lt;br&gt;
​&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic app - a simple, single HTML page with inline scripts&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.11ty.dev/"&gt;11ty&lt;/a&gt;  app - a Jamstack site based on 11ty - you can take a look at &lt;a href="https://dev.to/ficusjs/11ty-and-web-components-an-awesome-combination-4li7"&gt;our previous post&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://vitejs.dev/"&gt;Vite&lt;/a&gt; app - a single HTML page with Vite configuration&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.snowpack.dev"&gt;Snowpack&lt;/a&gt; app - a single HTML page with Snowpack configuration&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://rocket.modern-web.dev/"&gt;Rocket&lt;/a&gt; app - a Jamstack site based on Rocket.
​&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More projects are in development and will come soon!&lt;br&gt;
​&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;​&lt;br&gt;
Having a simple tool like Create Ficus App can save a lot of time when creating new projects. It gives you a headstart and allows you to incrementally add new tools and features as your project grows.&lt;br&gt;
If you have any feedback on the tool, or want to suggest new integrations between FicusJS and existing tools and framework, please visit the &lt;a href="https://github.com/ficusjs/create-ficus-app"&gt;Github repo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>webcomponents</category>
    </item>
  </channel>
</rss>
