This project requires NodeJS.
git clone https://github.com/fragaria/karmen-web.git karmen.tech
cd karmen.tech
npm i
Start the application using:
npm start
Testing site will be available at http://localhost:8000/
.
We use react-intl
for translations, so english version is auto-extracted from defaultMessage
attribute of FormattedMessage
component.
To add or update texts:
- Use
defaultMessage
for english version update - run
npm translate
- Edit
src/i18n/translations/cs.json
- run
npm run manage-translations
Create production bundle using:
npm run build
If you need to update texts of e-mails we send, e-mail templates are located in functions
directory:
functions/send-contact-form-message
functions/send-order-confirmation
functions/send-order-notification
In case you need to add new variables, you need to update one of renderers functions/render-template-contact-form.js
of functions/render-template.js
This theme has built-in Docker support. For many users, it's the easiest option to get things up and running. Note this will only build the site once and run it in Nginx. If you need development support, go with full npm installation instead.
First, make sure you have Docker along with docker-comopose
installed. To do
so, please follow a guide according to you OS of choice:
docker-compose
can be installed by following
official resources.
Note for Fedora: It's better to run docker-compose without sudo
. Please
follow this guide
to allow running without it.
Once you have Docker deamon running, just navigate to a cloned repository and run:
docker-compose up
First boot might take some time, but you should be presented with a running
app on http://localhost:8000
after a while.