Demo website published to: https://vue-neuron.netlify.app
npm install netlify-cli -g
npm install
netlify dev
netlify build
Automatically CI deployment with Github repository is Stopped (See document "Stop or activate builds"). Manually deployment by the netlify-cli command lines below.
# Deploy to Netlify as draft
netlify deploy
# Deploy to Netlify as production
netlify deploy --prod
-
mailgun-sendmail Send mail via Netlify Email Integration Plugin (Mail Service Provider: Mailgun)
-
aliyun-dm-sendmail Send mail via Aliyun Direct Mail Service
Deployment Notes: Compressing whole directory and files of netlify/functions/aliyun-dm-sendmail/ recursively to a ZIP archive file. Then manually deploy to Netlify server by command line
netlify deploy --prod
.
Netlify Docs refer to: Function, Edge Functions, Email Integration
- HTML form page in iframe window: public/enquiry-form/sample.html showed in PoolEnquiry.vue
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/dyslab/vue-neuron)
# Netlify functions help
netlify help functions
# Create new function
netlify functions:create
# List functions
netlify functions:list
# Start Netlify development environment
netlify dev
# Netlify function test via browser
http://localhost:8888/.netlify/functions/aliyun-dm-sendmail
# Or, Test 'GET' methon by CLI
netlify functions:invoke --port 8888 aliyun-dm-sendmail
# Test 'POST' methon with a json file body
netlify functions:invoke -p assets/example.json --port 8888 aliyun-dm-sendmail
# Alternatively, solely start Netlify functions serve
netlify functions:serve # All above command line argument '--port' set to '9999' instead