Giter Club home page Giter Club logo

wnyc-3000-vue's Introduction

wnyc-vue

Build Setup

# install dependencies
$ npm install

# copy the sample env file
$ cp .env.sample .env

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

Node Version

This project was built using v14.17.0

Running in Docker

To run this app in a production-like setup, use docker. The basic dev container can be run with the following commands:

docker build -t wnyc-3000-vue:latest
docker run -it -p 3000:3000 -e ENV=dev wnyc-3000-vue

If you'd like to run the app behind nginx, instead change the ENV variable

docker run -it -p 80:80 -e ENV=demo wnyc-3000-vue

Deployment

For SSR, this app uses Nuxt. Nuxt runs within a Docker container deployed to our fastboot- ECS clusters. The deployment consists of two parts, the static files which are deployed to S3 using gulp, and the Nuxt docker container which is deployed using nyprsetuptools. The following env vars are needed for the deployment to succeed.

Variable Description
NUXT_HOST Primary host at which Nuxt will be accessed.
NUXT_PORT Port used by Nuxt.
AWS_ACCESS_KEY_ID Needed by circleci to deploy.
AWS_SECRET_ACCESS_KEY Needed by circleci to deploy.
AWS_BUCKET_NAME The S3 bucket to deploy static files to.
AWS_CLOUDFRONT The ID of the cloudfront distribution fronting the app.

Notes

Set the theme in the assets/main.scss file

This project is optimized with lazy hydration (see https://github.com/maoberlehner/vue-lazy-hydration). Lazy hydration does not seem to play well with slots, so remove it from a component with slots if you're having issues.

Having issues with PostCSS or NodeSass? npm rebuild node-sass

wnyc-3000-vue's People

Contributors

kimlarocca avatar ksuitor avatar msbeethoven avatar ncastro-nypr avatar walsh9 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.