Simple example Twitter client to demonstrate some core Cypress concepts as seen within the 📺 Cypress In A Nutshell webcast.
- The frontend is implement with Vue, Vuex, Vue Router, and Vuetify.
- The backend provides an API via an Express server, and data is stored within MongoDB instance.
-
Install a local instance of MongoDB. Check the installation docs for your operating system.
If you're using macOS you can quickly have a MongoDB instance via the MongoDB.app
-
(Optional) If you actually want to load real tweets from Twitter, you'll need to grab a Twitter API keys, and place them within
/src/server/twitter.js
file.const twitter = new TwitterAPI({ consumer_key: '', consumer_secret: '', access_token_key: '', access_token_secret: '' })
-
Install dependencies:
npm install
npm run serve
npm run build
npx cypress open
npx cypress run
npm run lint