CRM platform backend is the Strapi plugin that provides a basic model for contact management along with the API's.
- Contact
- Individual
- Organization
- Activity
- Activity type
- Tag
- Country
- State
- District
- Village
The primary aim of this project is to have a simple and extendable base for the contact management CRM projects.
-
Create new strapi project using the below command
strapi new <your-project-name> -
Install the plugin
cd <your-project-name>mkdir pluginscd plugins
-
Clone project using below command
git clone https://github.com/webaccess/crmplatform.git crm-plugin
-
Install graphql
yarn strapi install graphql
-
Run strapi project
yarn start
You would need to add below settings to your strapi project if you are extending or contributing to this project.
-
Navigate to strapi root folder and modify the file /config/hook.json to add below code
"crm-plugin-routes-load": { "enabled": true } -
Modify package.json and prepend start script with AUTORELOAD=false
"start": "AUTORELOAD=false strapi start" -
When you make the changes run
yarn startthis will generates new routes
then run
yarn develop
-
Install testing dependencies
cd <your-project-name>/plugins/crm-plugin/yarn install -
Create and update the test configuration file
cp tests/integration/config/config.js.sample tests/integration/config/config.js -
Run test cases
yarn test