import{_ as r}from"./plugin-vue_export-helper-DlAUqK2U.js";import{c as h,a as e,b as n,d as s,e as t,f as l,r as o,o as d}from"./app-C6w_Pklu.js";const p="/assets/screenshot-B31RARyu.png",k={};function c(g,i){const a=o("RouteLink");return d(),h("div",null,[i[6]||(i[6]=e('
For preparation you need a recent version of Node. We are using v25.3.0 and recommend to use node version manager nvm to switch between different local Node versions:
# install Node using '.nvmrc' file
$ cd webapp
$ nvm install
$ nvm useInstall node dependencies with yarn:
# install all dependencies
$ cd webapp
$ yarn install
# or just
$ yarn
# or just later on to use version of ".nvmrc" file
$ nvm use && yarnCopy:
# in webapp
cp .env.template .envConfigure the files according to your needs and your local setup.
# serve with hot reload at localhost:3000
$ yarn dev# build for production and launch server
$ yarn build
$ yarn startWe ensure the quality of our frontend code by using
::: tabs @tab:active With Docker
After starting the application following the above guidelines, open new terminal windows for each of these commands:
# run eslint
$ docker-compose exec webapp yarn lint# run unit tests
$ docker-compose exec webapp yarn test# start storybook
$ docker-compose exec webapp yarn storybookYou can then visit the Storybook playground on http://localhost:3002
@tab title Without Docker
After starting the application following the above guidelines, open new terminal windows and navigate to the /webapp directory for each of these commands:
# run eslint in /webapp (use option --fix to normalize the files)
$ yarn lint# run unit tests in /webapp
$ yarn test# run locales in /webapp (use option --fix to sort the locales)
$ yarn locales# start storybook in /webapp
$ yarn storybookYou can then visit the Storybook playground on http://localhost:3002
:::
We are currently in the process of migrating our styleguide components and design tokens from the Nitro Styleguide into the main ocelot.social repository and refactoring our components in the process. During this migration, our new components will live in a _new/ folder to separate them from the old, yet untouched components.
The folder structure we are following is prescribed by Nuxt.js:
svg format and all shared SCSS files such as tokenscomment or post)routes in the app and are composed of layouts, features and componentsFor preparation you need a recent version of\\nNode. We are using\\nv25.3.0 and recommend to use node version manager nvm to switch\\nbetween different local Node versions: