Giter VIP home page Giter VIP logo

chopfitzroy / yarn-v2-workspace-docker-vs-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huy-nguyen/yarn-v2-workspace-docker-vs-code

0.0 0.0 0.0 165 KB

A technology demonstration of the Plug'n'Play and workspace features of Yarn v2, Docker Compose, Visual Studio Code, TypeScript, Webpack, Babel, ESLint, Prettier and Jest

Home Page: https://www.huy.dev/yarn-v2-workspace-docker-vs-code-2020-03-23/

License: MIT License

Dockerfile 23.01% JavaScript 68.62% TypeScript 6.99% CSS 0.31% HTML 1.07%

yarn-v2-workspace-docker-vs-code's Introduction

This repo uses a simple full-stack JavaScript web application to demonstrate the tooling setup for a local development environtment that brings together the following tools and technologies:

The demo application is an interactive in-browser explorer of the Star Wars API, which contains the data about all the Star Wars films, characters, spaceships and so on. If you want to quickly try the application out, here is the online version created by the GraphQL team.

For a high-level tour of this repo, please see the accompanying blog post.

Prerequisites

Because these prerequisites are available on Windows, Mac and Linux, the functionality contained in this repository should be the same across all those platforms.

Instructions

To get the demo application up and running, follow these steps:

  • cd into the project directory.
  • Run docker-compose build base.
  • Run docker-compose up -d.
  • Navigate to http://localhost:32804 in your browser (32804 is the default value of the $FRONT_END_HOST_PORT environment variable).
  • To use the preconfigured Docker-based Visual Studio Code development environment, with the Docker containers already up and running, open the Command Palette (Cmd+Shift+P), choose "Remote Container: Open Folder in Container" and choose the vs-code-container-back-end in the project directory for the back-end or vs-code-container-front-end for the front-end.

Available tasks

The following tasks are available in both the front-end and back-end workspaces.

  • build: make a production build without serving it.
  • clean: clear away all build artifacts.
  • format: automatically format code styling with Prettier.
  • lint: run ESLint with automatic fixes.
  • serve: serve the build output.
  • start: make and serve a development build and recompile on change.
  • typecheck: perform type checking with the TypeScript compiler without outputting any code.

The front-end has the following additional tasks:

  • test: run tests with Jest
  • test:watch: run test with Jest in interactive watch mode on the command line.

To run a task, e.g. lint, in a particular workspace, e.g. front-end, either run yarn workspace front-end lint from anywhere in the project or run yarn lint from within the front-end workspace (packages/front-end).

yarn-v2-workspace-docker-vs-code's People

Contributors

huy-nguyen avatar

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.