Skip to content
This repository was archived by the owner on Oct 31, 2026. It is now read-only.
studyphoenixPublic archive

About

Lo-Fi Prototype 2 (study flow)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

lo-fi-prototype-2

Lo-Fi Prototype 2 (study flow)

Getting Started

Learning Vue:

Development

IMPORTANT: The main branch is write-protected, so you can only have changes merged via PR.

There are two ways of installing things, one is directly on your system (install node.js), or by running the docker container I created for you. Below a guide for using the container.

Run the following command with docker installed:

docker run -it -p 8081:8081 --name prototype -v .:/mnt ghcr.io/janishutz/dev-container-node

To launch the container again later, you can use

docker start -i prototype

or to start the container and removing it whenever you exit it:

docker run -it -p 8081:8081 --rm -v .:/mnt ghcr.io/janishutz/dev-container-node

Automatic container

If you only want to run the vue app without managing deps or anything yourself, you can instead run this command:

docker run -it -p 8081:8081 --rm -v .:/mnt ghcr.io/janishutz/vue-dev-runner

This will do all those things for you automatically.

Dependency management

Vue is a JS/TS framework and thus uses npm or yarn. Which one you prefer doesn't matter, both are installed in the container. I personally am still using npm over yarn in many cases, but am currently switching to using yarn more, because it is the better tool in most cases.

In any case, both use the npm registry and for the main project, we will be able to benefit from some of the sdks that I have written (and of course the ones written by so many other people).

Basic npm and yarn commands:

Task npm yarn
Install required deps npm i yarn
Install new dep npm i <pkg name> yarn add <pkg name>
Install new dep as dev dep npm i -D <pkg name> yarn add --dev <pkg name>
Remove dep npm uninstall <pkg name> yarn remove <pkg name>

Viewing the page

In the docker container, run

npm run dev -- --host

Note that you only need the -- --host argument because of how docker networking in bridge mode works.

Colours

Remember, don't "hard-code" colours, use var(--primary) for the primary colour.

You may find the colour definitions in ./src/scss/_main.scss, inside the :root element's style.

About

Lo-Fi Prototype 2 (study flow)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages