Setup local environmen
Last updated
Last updated
If you do not want to use the npm
version of Anacleto you can connect the development environment to a local version of the builder.
Follow this guide only if you intend to modify the Anacleto Builder sources, otherwise we strongly recommend that you use the stable releases on npm
First thing download Anacleto
project from .
We suggest that you organize your files this way, but feel free to organize them however you like.
Open a terminal in anacleto-fronend
folder and run npm install
Open a terminal in anacleto-backend
folder and run npm install
Es:
cd workspace/anacleto-apps/sample-app-1-backend && sudo npm link ../../anacleto/anacleto-backend
Es:
cd workspace/anacleto-apps/sample-app-1-frontend && sudo npm link ../../anacleto/anacleto-frontend/
Connect anacleto-frontend
library to you application react (to avoide react hook errors), run from :
Es:
cd workspace/anacleto/anacleto-frontend && sudo npm link ../../anacleto-apps/sample-app-1-frontend/node_modules/react
Automatically recompile library and work locally on it (your src/ module are automatically recompile it into dist/ whenever you make changes.):
Create a sample-app-1-backend
application () and link to your local version of anacleto-backend
instead of npm
version
Create a sample-app-1-frontend
application () and link to your local version of anacleto-frontend
: