A project scaffold for quickly starting a site build with:
- Eleventy for templates and site generation
- Tailwindcss for a utility first CSS workflow
- PurgeCSS for optimizing css output
- Parcel JS for a simple asset build pipeline
- Netlify CLI for Netlify dev pipeline and local replication of prod environment
- Node and NPM
- Netlify CLI optional
# install the project dependencies
npm install
# run the build and server locally
npm run start
# run the production build
npm run build
# Install the Netlify CLI globally
npm install -g netlify-cli
netlify dev
Serverless functions are located in src/functions
A serverless functions pipeline is included via Netlify Dev. By running netlify dev
you'll be able to execute any of your serverless functions directly like this:
- /.netlify/functions/hello
Netlify's Redirects API can provide friendlier URLs as proxies to these URLs.
- /api/hello