DEV Community

Discussion on: SWR - An awesome react hooks for data fetching

Collapse
 
isnan__h profile image
ishan

I started the demo of SWR from scratch. Currently, the database I used has expired due to inactivity, but you can generate your API key and set a .env file. You can generate it by creating a new cluster in MongoDB Atlas.

let db = client.db("truskin-storage");

The string "truskin-storage" is the DB kind of alias name generated by Mongo during the creation of the database itself.