@sagarchauhan005/nuxt-serverless-installer
v0.0.7
Published
Nuxt Serverless Installer
Downloads
1
Maintainers
Readme
Nuxt Serverless Installer
A simple nuxt installer package that guides you into installing a fully optimised Nuxt Serverless app
Installation
- Run
npm install @sagarchauhan005/nuxt-serverless-installer
into your app and then follow the steps. - Run
make setup
to set up the project. - Modify your nuxt.config file from
toexports default {
module.exports = {
- Finally, run
make deploy
to deploy your app. - To access your lambda logs directly, please install Bref Dashboard (Visit https://dashboard.bref.sh/ and download the deb package for linux)
Manual Installation
Run Setup
- Run the following command.
npm install -g serverless
npm install serverless-apigw-binary
npm install serverless-offline
- Go to your serverless.yml file and enter your own "UNIQUE" service name
service: <your-dummy-site-name> # service: kartmax-nuxt-dummy-site
Modify your nuxt.config file from
exports default {
to
module.exports = {
Now as a last step, install aws-cli for your OS and then run 'serverless deploy' as a command (https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)
To access your lambda logs directly, please install Bref Dashboard (Visit https://dashboard.bref.sh/ and download the deb package for linux)
Author
Sagar Chauhan works as a Project Manager - Technology at Greenhonchos. In his spare time, he hunts bug as a Bug Bounty Hunter. Follow him at Instagram, Twitter, Facebook, Github
License
MIT