InfyCRM

Technical Users

If you have purchased the InfyCRM system then you will be able to find 2 different zip files into it.

  • dist.zip

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:

1. Setup environment .env file

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 FILESYSTEM_DRIVER and 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 Stripe configuration it is using while IPD payments. Here are some links by using it you will get an idea about how to generate stripe API keys.

  • Link 1
  • Link 2

    STRIPE_KEY= STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET_KEY=

You have to set webhook URL into stripe, webhook URL should be YOUR_APP_URL/subscription-update.

Setup the google and facebook social login. find step To Setup Goolge Login to set up google login and click To Setup Facebook Login to setup the facebook login.

GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOGLE_REDIRECT={APP_URL}/login/google/callback FACEBOOK_APP_ID= FACEBOOK_APP_SECRET= FACEBOOK_REDIRECT={APP_URL}/login/facebook/callback

And you should be ready to go.

2. Composer install (For Laravel)

You need to install all laravel dependencies with the following command.

composer install

Once the composer install is completed, run a command to generate a key.

php artisan key:generate

3. Install npm Dependencies

Install node modules,

npm install

4. Run database migrations

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.

5. Build a project

Build a project with a laravel mix. If you are running in development mode then run,

npm run dev

Or if you are planning to use it in production then run,

npm run prod

That's it and you are ready to go.