CodeverDotDev/codever
Tentang
Bookmarks & Notes Manager for Developers — with Markdown and Code Snippets support
Produktivitas dan otomatisasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- -1
- dalam 15 hari
- 0
- dalam 1 bulan
- 0
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
⚡🔖️ Bookmarks and snippets manager for developers & co 🔖⚡️
:point_right: Use our HowTo pages to get you going and start saving time and nerves when managing your bookmarks and code snippets. The following helpers and extensions will assist you along the way:
Extensions
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|
| Bookmarklet | Chromium Extension | Firefox Addon | IntelliJ Plugin | VSCode Extension |
Chrome extension usage example - save snippet

The other extensions function more or less after the same principle
The browser extension source is maintained in this monorepo alongside the Codever web application and API.
Public bookmarks
Worthy public bookmarks are published regularly on Github at CodeverDotDev/bookmarks.
Setup (development or self hosting)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The project is developed with the MEAN stack and Keycloak for authentication and authorization:

The project contains two core apps and the browser extension source:
- codever-ui which makes up the User Interface. This uses with Angular and Angular CLI.
- codever-api which is the API supporting the UI. It uses ExpressJS with MongoDB and Keycloak. See the OpenAPI specification
- codever-browser-extension which contains the source for the Chrome and Firefox extension. It is independently loaded, tested, packaged, and published from this directory.
Prerequisites
What you need to run this app:
nodeandnpm(we recommend using NVM)- Ensure you're running Node at least (
v16.x.x+) and NPM (8.x.x+)
- Ensure you're running Node at least (
- nodemon -
npm install -g nodemon - Docker - we recommend using Docker Desktop
Docker and Docker-compose are currently used only for local development
Installing (development setup)
Start MongoDB and Keycloak server
Keycloak starts with start-dev --import-realm (see the docker-compose file) and loads the
initial setup (the bookmarks realm and its users) from
docker-compose-setup/keycloak-export-import. Nothing needs to be
enabled for the first startup. See Keycloak for when the import is applied.
docker-compose up
Use
-dto run it in the background
Install and run (frontend & backend)
⚠️ One-time setup: the API requires an
env.jsonconfig file (git-ignored) — create it from the provided example before the first start, otherwise the backend fails withCannot find module '../../env.json':cp apps/codever-api/env.json.example apps/codever-api/env.json
You want to have the backend API running first with the following commands:
# install
nvm use #only if you are using nvm
npm install
# run
npm run frontend #to run the frontend
npm run backend #to run the backend
#alternatively run in parallel
npm start
or in one line nvm use; npm install; npm start
This starts
- the API with nodemon at http://localhost:3000/api and will watch for code changes in backend and automatically redeploy.
- the frontend available at http://localhost:4200. Login the user/password
mock/mockconfigured for you in the initial Keycloak setup. Some bookmarks are initially loaded with your account, so you can start playing with them. - the admin dashboard at http://localhost:4200/admin. Login with
mock_admin/mock_admin, a user with theROLE_ADMINrealm role from the initial Keycloak setup.mockis a regular user and can't open it.
You can create your own test user, or any other extra users by following the screenshots in Add a Keycloak user to create it.
To be able to automatically add youtube videos published date and duration to the title you need to create a nodemon.json file based on the backend/nodemon.json.example and add your own youtube api key
Keycloak
Keycloak Admin console reachable at http://localhost:8480/auth/admin with the
user/password admin/Pa55w0rd (see the docker-compose file).
The initial setup creates these users in the bookmarks realm:
| User/password | Realm roles | Use |
|---|---|---|
mock/mock |
ROLE_USER |
regular user for local development |
mock_admin/mock_admin |
ROLE_USER, ROLE_ADMIN |
opens the admin dashboard at /admin |
admin-integration-tests/admin-integration-tests |
ROLE_USER, ROLE_ADMIN |
used by the API integration tests |
:warning: Keycloak imports the initial setup only when the
bookmarksrealm doesn't exist yet; an existing realm is left unchanged. To get later changes of the setup, either add them in the admin console (for example create themock_adminuser and assign it theROLE_ADMINrealm role, see Add a Keycloak user), or start from scratch withdocker-compose down -v, which also deletes the local MongoDB data.
Testing
E2E (integration) tests with Cypress
Keycloak and mongodb have to be started as specified above (
docker-compose upcommand)
Run the integration test by issuing the following command.
cd apps/codever-ui
npm run cy:run
To open Cypress you can run the following task
npm run cy:open
API (backend)
Integration tests
Keycloak and mongodb have to be started as specified above (
docker-compose upcommand)
Run the integration test by issuing the following command.
cd apps/codever-api
npm run integration-tests
A report will be generated.
Database migrations
One-off MongoDB migration scripts (including the full-text search index definitions and
their search weights) live in
apps/codever-api/resources/db-migration/mongodb.
See that README for how to run
the scripts both locally and in production, with examples for applying, verifying,
and rolling back changes.
Debugging
UI (Frontend)
Dev Tools in Chromium browsers
You can use the Dev Tools in Chromium based browsers (e.g. Chrome, Brave). Navigate to Sources and the file you want to set your break points, like in the following example:

IntelliJ
In IntelliJ you add Javascript Debug configuration as shown below:

Backend
IntelliJ / Webstorm (Node.js plugin is required)
The npm run debug starts nodemon with the --inspect parameter so you can attach to this process,
by using the following configuration:

Visual Studio Code
See Node.js debugging in VS Code with Nodemon
Blog
Blog posts related to Codever features and implementation details can be found on Codepedia.org and Dev.to
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Changelog
The changelog is available in CHANGELOG.md
To update the changelog execute the following commands:
nvm use
standard-changelog
License
This project is licensed under the MIT License - see the LICENSE file for details.
All media materials used in the project fall under the copyright law
Jelajahi proyek terkait
Memuat…




