- Clone the repository
- Create
.env
file in the root. - If you are not using Kafka copy everything from
.env.sample
, paste it to.env
file and update necessary variables. If you are using kafka copy everything from.env.sample.kafka
, paste it to.env
file and update necessary fields.IMPORTANT: Read the comments carefully before updating or adding any variables
- Inside /server create new file
cluster-whitelist.js
and add cluster details. Usecluster-whitelist.sample.js
as a template. - Inside /server run
npm run bootstrap-server
. This will install dependencies, create schema, migrate tables, seed initial data and start the server. - Go Inside /client-react.js, create new
.env
file, copy-paste everything from .env.sample amd update necessary variables - Inside /client-react.js run
npm run bootstrap-client
. This will install all the dependencies and start client. - To start server and client independently run
nodemon server
andnpm start
from /server and /client directory respectively
- Clone the repository
- Create
.env
file in the root. - If you are not using Kafka copy everything from
.env.sample
, paste it to.env
file and update necessary variables. If you are using kafka copy everything from.env.sample.kafka
, paste it to.env
file and update necessary fields. - If you are using kafka copy everything from
.env.sample.kafka
, append it to.env
file and update necessary fields.IMPORTANT: Read the comments carefully before updating or adding any variables
- Create new file
nginx.conf.template
inside/client-reactjs/nginx/conf.d
directory - If you are using SSL copy all the content from
nginx.conf.template-ssl
and paste it tonginx.conf.template
. If you are not using SSL copy the content fromnginx.conf.template-no-ssl
and paste it tonginx.conf.template
. - Inside /server create new file
cluster-whitelist.js
and add cluster details. Usecluster-whitelist.sample.js
as a template. - Go Inside /client-react.js, create new
.env
file, copy-paste everything from .env.sample and update necessary variables - Build Application
- On root create a new file
docker-compose.yml
- If you are not setting up Kafka and Zookeeper copy all the contents from
docker-compose-without-kafka
, paste todocker-compose.yml
and rundocker-compose up -d
. - If you are setting up all services copy all the contents from
docker-compose-with-kafka
, paste todocker-compose.yml
rundocker-compose up -d
.
- On root create a new file
- Once the build successfully completes, the application will be accessible at
http://<host_hostname>:<host_port>
Click here to view complete documentation. Tombolo supports Internationalization. For instructions to spin this app in different language, view Internationalization instructions below.
Internationalization Instruction
- Import antd language file into client-reactjs/src/App.js.
Example : import hi_IN from 'antd/es/locale/hi_IN';
click here for list of supported languages and corresponding file names. - Open client-reactjs/src/i18n/languages.js and add new language to the existing language object
Example :
{ label: 'हिन्दी', value: 'in', },
- Inside client-reactjs/public/assets/i18n/common create new json file to store translation. Copy everything form en.json, paste into the new file and replace values for each key with its translation
Example create in.json
- Finally go back inside App.js file locate locale function and add case for the new language
Example
locale = (lang) => { switch (lang) { case 'in': return hi_IN; default: return en_US; } };