I search for vim color schemes, and store them. That's about it.
The worker is a CLI used to import and manage the data for vimcolorschemes.
Note: The MongoDB database can also be ran from the app docker setup.
Update the values in .env to your needs.
TIP: Read the comments on the dotenv file.
The .env is automatically picked up by CLI when it runs.
Since Github's API has a quite short rate limit for unauthenticated calls (60 for core API calls). I highly recommend setting up authentication (5000 calls for core API calls) to avoid wait times when you reach the limit.
To do that, you first need to create your personal access token with permissions to read public repositories. Follow instructions on how to do that here.
To run a job, use the bin/start script:
bin/start <job>Import repositories into the database
bin/start importImport only a specific repository using the --repo option.
bin/start import --repo morhetz/gruvboxFetch the necessary data for the repositories
bin/start updateForce a full update of all the repositories by using the --force option.
bin/start update --forceUpdate only a specific repository using the --repo option.
bin/start update --repo morhetz/gruvboxGenerate color data for the vim color scheme previews
bin/start generateForce a full generation of all the repositories by using the --force option.
bin/start generate --forceGenerate preview data for only a specific repository using the --repo option.
bin/start generate --repo morhetz/gruvboxbin/testgo test flags can be used:
bin/test --covergolint is configured to run using bin/lint.
go fmt can be easily used on all code using bin/format.
