Pre-requisites
The following section assumes you have installed all the tools required for web development from our tools section.
Before you move on, it is also mandatory that you read through the key technology list in our web technologies section and you understand the justification for each one, especially if you're not familiar with the specific technology.
It is presumed that you already have a Web Base
prepared and ready for you install modlets, otherwise, please go to the
Web Framework quickstart section to initialize your
Web Base
.
It is also presumed that you are already familiar with running a local development environment, otherwise, please go to the Local Dev Environment to prepare your machine for local development.
Installation
1. CLI tool installation of IMS
Modlet
Run the following command in the root of the Web Base
folder.
npx cli install @mssfoobar/ims
You'll then be prompted to choose your 'root folder', use the default (current working directory).
The modlet will be installed, with the appropriate files being copied over, and dependencies will be added and copied into your package.json.
2. Manual steps
The installation steps are still a work in progress, future versions of the modlet will shift all manual steps into the CLI tool.
2.1 Add the following properties to your .env
file
These default values will work if you're using 127.0.0.1.nip.io
for development, otherwise, change them accordingly.
The specifics for what each environment variable does can be found in the
configuration section.
...
## ==================== IMS ====================
## The URL to the IMS backend service
IMS_ENDPOINT=http://ims.127.0.0.1.nip.io
2.2 Install additional dependencies
The following additional dependencies, used by some DASH modlet components (that uses shadcn-svelte patterns) requires zod (for validation), formsnap, and sveltekit-superforms.
npm install zod sveltekit-superforms formsnap
3. Run the local environment required for IMS development
podman compose --env-file .env -f ims/compose.yml up -d
Remeber to adjust and add the compose.override.yml
if you're using Docker, or have other requirements like exposing
the database for direct connection from database management tool.
4. Start the development server
npm run dev