Skip to content

Instantly share code, notes, and snippets.

View samohovets's full-sized avatar
🏠
Working from home

Igor Samokhovets samohovets

🏠
Working from home
View GitHub Profile
@samohovets
samohovets / strapi.js
Created March 26, 2020 20:43
Setup strapi for testing
const Strapi = require('strapi');
const { MongoMemoryServer } = require('mongodb-memory-server');
const mongod = new MongoMemoryServer();
async function setupStrapi (entryNamesToOpen) {
const uri = await mongod.getUri();
process.env.DATABASE_URI = uri;
await Strapi().start();
const roles = await strapi.plugins[
@samohovets
samohovets / cloudSettings
Last active June 18, 2021 10:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-06-18T10:36:18.749Z","extensionVersion":"v3.4.3"}