Repository containing the CC Search frontend application. This web app contains all the UI which communicates with the CC Search API to get the data that is rendered in the browser.
CC Search is an interface to search for content that is licensed under Creative Commons licenses or in the public domain.
The frontend app is built using Vue.JS, Babel and Webpack.
Run the following commands in order to have the code up and running on your machine:
# installs dependencies
$ npm install
# Builds and serves assets with hot-reload
$ npm run dev
Alternatively, you can use Docker to build and run the application. You just have to run:
$ docker-compose up
You should now have the application running and accessible at https://localhost:8443 (note: it runs on https://, not http://). Since it runs on HTTPS, you will probably see a invalid certificate privacy notice on your browser when accessing it. Just follow your browser's instructions to continue and access the website anyway.
You don't need to have the CC Search API running locally to be able to run the frontend application. It's configured to communicate, by default, with the API that's already publicly available. If you wish, you can change the URL of the API that's used during development at https://github.com/creativecommons/cccatalog-frontend/blob/master/config/dev-env.js#L7
You can run the tests by executing:
npm run test
Details about how to deploy the frontend code can be found on the CC Wiki (Accessible to CC Staff only).