A web application for sharing and editing vue single-file components.
Features:
- GitHub Authentication
- Create and edit Vue Single File Components
- Write ES2015 Code
Copy .env.example to .env and adjust the environment variables. (For an explanation of the environment variables scroll down.)
yarn installyarn run build
yarn run migrate:db
yarn run start🐳 n1ru4l/vue-component-database
I recommend to use a .env file for configuration. (Learn more!)
docker pull n1ru4l/vue-component-database
docker run -d -p 8080:8080 --env-file ./.env vue-component-databaseAPP_URLThe full URL of the app (e.g.http://localhost:8080)APP_PORTPort of the app (e.g.8080)APP_HOSTThe host of the app (e.g.localhost)
First you will have to register a new OAuth application with GitHub (Click here)!
The Hompage URL must be equal to you APP_HOST variable. The Authorization callback URL must be equal to your APP_HOST variable + /login (e.g. http://localhost:8080/login)
-
GITHUB_CLIENT_IDThe Client ID of your OAuth application (some random string) -
GITHUB_CLIENT_SECRETThe Client Secret of your OAuth application (some more random string)
DB_CONNECTIONEngine of the connection (Valid options:sqlite3ormysql)
DB_HOSTHost of the database (e.g.127.0.0.1)DB_PORTThe port of the database (e.g.3306)DB_DATABASEThe name of the database (e.g.vue_component_db)DB_USERThe name of the database user (e.g.john)DB_PASSWORDThe password of the database user (e.g.cena)
DB_FILENAMEThe filename of the sqlite3 database (e.g.database.sqlite3)
WEBPACK_DEV_PORTThe port you want to run the webpack dev server (e.g.4201)WEBPACK_DEV_URLThe full URL of the webpack dev server (e.g.http://localhost:4201)WEBPACK_DEV_HOSTThe host of the webpack dev server (e.g.localhost)
Execute tests with:
yarn test-
Fork this repo!
-
Clone your fork!
-
Install dependencies
yarn install- Generate the graphql schema
graphql.schema.jsonfile.
yarn run generate:schema-
Implement feature!
-
Write Tests! (
yarn test) -
Lint the code (
yarn run lint) -
Create a pull request :)
