This documentation is a work in progress, and we welcome your feedback and suggestions. Please let us know if you have any questions or if there is anything else you would like to see included in the documentation.
This topic is here because we are already working on this. Please check out the Roadmap and get more insights when it is ready.
Currently, we are in the alpha phase. Please refer to the Roadmap "Release phases" section for more information.
You can use CodeMash CLI to create projects from templates, restore them from snapshots or use a powerful scripting language like bash to work with the modules.
#!/bin/bashPROJECT_ID=$(codemashprojectnew"My New Project"2>&1)# enabling database and importing datacodemashdatabaseenable--project $PROJECT_IDcatemployees.yaml|codemashdatabasecollectionnew--project $PROJECT_IDcatemployees.csv|codemashdatabaseimport \--collection "employees" \--project $PROJECT_ID# enabling email servicecodemashnotificationsemailenable--project $PROJECT_IDcodemashnotificationsemailintegrationsnew--project $PROJECT_ID \--provider SendGrid \--token "***" \--email "no-reply@codemash.io"# create a reusable template.codemashnotificationsemailtemplatesnew \--project $PROJECT_ID \--name "Company Newsletter" \--from-file \--body newsletter.html \--subject "CodeMash Newsletter"# create a campaign and send an email to all employees tomorrowcodemashdatabasecollectionsfind--project $PROJECT_ID \ --projection'{ email: 1} '| \codemashnotificationsemailcampaignsnew \--project $PROJECT_ID \--name "December Campaign" \--template "Company Newsletter" \--tokens '{ "campaignMonth": "December", "text": "Hi, this is newsletter" }'--postpone $(date--date='tomorrow'+%s) --recipients-