Sign up for Cosmic JS to start managing content for your websites and applications faster and easier.
After setting up your bucket on Cosmic JS, edit the config.js file and edit the slug to point to the slug of your bucket:
// config.js
app.constant('BUCKET_SLUG', 'your-bucket-slug');
app.constant('URL', 'https://api.cosmicjs.com/v1/');
app.constant('MEDIA_URL', 'https://api.cosmicjs.com/v1/your-bucket-slug/media');
app.constant('READ_KEY', 'read-key');
app.constant('WRITE_KEY', 'write-key');
app.constant('DEFAULT_EVENT_IMAGE', 'url-image');
npm install
npm start
gulp
Then go to http://localhost:3000