Skip to content

hvegav/tweeterdemo

Repository files navigation

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# npm
npm install

Install serverless framework

# serverless
npm install -g serverless

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Configure AWS CLI credentials https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html

Create AWS s3 bucket and publish into cloudfront https://aws.amazon.com/es/premiumsupport/knowledge-center/cloudfront-serve-static-website/

In the file nuxt.config.ts update the url of the cloudfront distribution

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    modules: [
        '@nuxtjs/tailwindcss',
        'nuxt-security'
      ],
    app: {
      cdnURL: "https://MI_CDN",
    }
})

Build the application for production:

npm run build

Copy the public files to s3 created

aws s3 cp ./.output/public s3://MI_BUCKET_CREADO --recursive 

Deploy Server to a Serverless Function

serverless deploy      

TODO: Agregar comandos para crear un cloudfront delante del API Gateway

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published