Giter VIP home page Giter VIP logo

cobalt's Introduction

cobalt

  • Share videos among friends easily and quickly.
  • Self-hostable
  • Simple UI

Development environment

Steps to run

  1. clone the repo git clone https://github.com/omnisci3nce/cobalt.git
  2. run docker-compose up -d in top level folder to start postgres
  3. open one terminal each for server and client and navigate into their respective folders (cd server & cd client)
  4. in server folder run npm run migrate:up to run all db migrations on the postgres database container
  5. run npm install and npm run dev in both server and client folders

cobalt's People

Contributors

omnisci3nce avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cobalt's Issues

Admin can update their instance-wide config ("preferences")

Currently the PreferencesForm on the UI is not hooked up to any config service or the backend.

  • implement a updateConfigs function in client config service
  • create a router.post handler in config controller
  • use it to update the database via the config "repository"

Configure Preferences card should have a Save button that can submit the form

UI

  • "Save" button in bottom right of card
  • default colour

image

Form

Follow the patterns in components/LoginForm

  • create a form variable with useForm passing in PreferencesFormFields for the type parameter, and set default initial values.
  • use {...form.getInputProps('username', { withError: false })} to connect each input field up to the form hook (replace with correct property name instead of 'username')
  • wrap the form fields in a <form></form> element and set the onSubmit property of the form element to just console.log the values

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.