Coder Social home page Coder Social logo

bambee-task's Introduction

Bambee Task

Homework for Bambee FS Dev

Running the app

Terminal #1:

#install packages
yarn install

# download and build the docker images, and build the app
docker-compose up -d

# start nodemon
# If this fails on init, run the Terminal #2 commands and then re-run this command
# For some reason, the webpack initial build can fail to create the dist folder required to serve the files
make serve

Terminal #2:

# run webpack and watch the files
npm run dev

# or
yarn dev

Why make instead of npm?

These commands indeed do run npm commmands but they run inside the docker container. This saves you from having to type out the docker commands every time.

Debugging

Chrome canary now ships with a node debugger button as shown below:

debugger

Click on that, and make sure you have localhost:9229 as a source. A console for the app should show up when it starts.

Helpers

# Create a production build
npm run build

# Log into the container shell
make shell

# Run node console inside docker
make console

Run tests (one file)

make FILE=path/to/file.test.ts test-file

Run all tests

make test

Notes

bambee-task's People

Contributors

xxthcenturyboy avatar

Watchers

 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.