Frequently Asked Questions (FAQ)
What is mockforme?
mockforme works seamlessly with all major frontend frameworks like React, Angular, Vue, or even vanilla JavaScript. The integration is quick and easy.
How do I get my Access Token?
To generate an Access Token, sign up at dashboard.mockforme.com. You can also access the token page directly here.
note
The token is valid for 30 days, after which you’ll need to generate a new one.
Does mockforme work with React, Vue, Angular, or other popular frontend frameworks?
Yes! mockforme is framework-agnostic and can be used with any frontend stack. You can check examples here.
Is it safe to use in production?
No. mockforme is designed for development and testing environments only. It is recommended to use it like:
import { mockforme } from 'mockforme';
const isDev = process.env.isDev;
/**
* Wrap initialisation under condition.
*/
if (isDev) {
const TOKEN = 'ACCESS_TOKEN';
mockforme(TOKEN).run();
}
Does mockforme retain revisions of mock data?
No. It does not retain any revisions of the documents. Once a document is deleted, it is permanently removed.
note
We strongly recommend not using any production data for mocks.