If you have purchased the InfyHMS system then you will be able to find 2 different zip files into it.
If you are a technical user, then you need to use a src.zip file. To set this up, you need to have a sound knowledge of Laravel. It's also expected that you know about deploying Laravel and JS applications on the webserver as well.
Extract that file on your local and follow the following steps:
You need to change the following information into your environment (.env) file.
APP_NAME - Name of your Application/Library System APP_URL - Change this URL with your server URL (including trailing path if you are putting it in subfolder or root website) DB_HOST - Put your database hostname here DB_PORT - Put your database port here if it does not default to 3306 DB_DATABASE - Change it to your database name DB_USERNAME - Name of your database user DB_PASSWORD - Password of your database user
You will also need to set up mail configuration, you can read more about here for that setup based on mail service that you use.
MAIL_DRIVER MAIL_HOST MAIL_PORT MAIL_USERNAME MAIL_PASSWORD MAIL_ENCRYPTION MAIL_FROM_ADDRESS MAIL_FROM_NAME
If you want to store your files to direct your s3 bucket then you have to use following
.env variables. You need to change
MEDIA_DISK value to s3 when you are using AWS file storage.
AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= AWS_ENDPOINT= AWS_URL=
Or you can use your choice of storage driver to store your media assets if you want. All of your attachments will be placed into that.
Set twilio env if you want to use SMS module. you can find to setup twilio steps from above.
TWILIO_SID= TWILIO_TOKEN= TWILIO_FROM_NUMBER=
Set Stripe configuration it is using while IPD payments. Here is some links by using it you will get an idea about how to generate stripe API keys.
Set Zoom configuration it is using in Live Consultations module. So first of you need to create your zoom ap into zoom marketplace and need to generate the API Keys and credentials.
- Go to Link and do sign in.
Developbutton on header and select
- Choose the
JWTand create an application with the app name that you want.
- Input required information and click
Continueuntil your app will be activated.
After completing the above steps, you need to update your
.env file by placing below keys inside that.
- ZOOM_API_URL="https://api.zoom.us/v2/" - ZOOM_API_KEY="INPUT_YOUR_ZOOM_API_KEY" - ZOOM_API_SECRET="INPUT_YOUR_ZOOM_API_SECRET"
And you should be ready to go.
You need to install all laravel dependencies with the following command.
Once the composer install is completed, run a command to generate a key.
php artisan key:generate
Install node modules,
Run database migrations and seeders for creating a database and fill default data
php artisan migrate --seed
Or, If you are not able to run migrations for any reason then you can import a pre-populated database file from the dist folder to your database.
Build a project with a laravel mix. If you are running in dev mode then run,
npm run dev
Or if you are planning to use in production then run,
npm run prod
That's it and you are ready to go.