Coder Social home page Coder Social logo

ddi-nui's Introduction

draw draw ink 2

Getting Started

This "v2" of ddi requires the original service running, so get that infrastructure running

  • Start the original drawdrawink (It's best to consult that project README directly but this usually works):
cd ../ddi-legacy
nvm use
npm run dev
  • Next, start the docker-compose which starts:
    • nginx reverse proxy (this helps avoid CORS issues between the v1 & v2 apps)
    • postgreSQL DB
    • database client (for direct access to DB)
cd ../ddi-nui
docker-compose up
  • Next, run the development server:
nvm use
npm run clean:dev
  • View app at localhost

Testing

Run tests

npm test

# OR watcher mode
npm run test:watch

Debug tests

  • requires Playwright Test for VSCode
  • add a breakpoint to the test file
  • click the Testing side menu button (I believe this is added to vs code by the Playwright Test for VSCode extension)
  • find the test and click its Debug Test button

Test code generator

  • helpful for finding selectors
npm run test:codegen

KNOWN BUGS

  • npm run dev:css - the postcss cli build's "watch mode" doesn't detect new files being created in ddi-nui/styles. Restarting dev:css script will detect the new files

Test Image (This section out of date(Needs updates!))

  • (if image to test wasn't the most recently built image) npm run image:build
  • make sure image-test.env exists and has valid values for the container
    • e.g. references to PORT and localhost will be different (e.g. LEGACY_DDI_BACKEND_URL_WITH_PROTOCOL)
  • npm run image:start
  • app should be accessible at localhost:1234
    • the port number is the first number in the package.json command image:start, e.g. docker run -p 1234:8080/tcp

to start a command line on running container

  • follow the instructions in Test Image section to get the app container running

  • npm run image:bash

  • npm run image:bash

ddi-nui's People

Contributors

deanslamajr avatar

Stargazers

 avatar Paul S Soteropulos 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.