Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 2.07 KB

README.md

File metadata and controls

90 lines (68 loc) · 2.07 KB

X-World-Map

World map to display people, events, travels and more.

Getting Started

This API works with the app https://github.com/bernardodiasc/x-world-map

Development

With NVM, configure your ennvironment to use Node version 14:

nvm install v14
nvm use v14

Install dependencies:

yarn install

Make copy of .env.example in the root of this project and use the name .env.local.

Use a hash value for these keys:

APP_KEYS=
JWT_SECRET=
API_TOKEN_SALT=

To enable file upload create an account at https://cloudinary.com/ and fill the credentials:

CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=

Then run the app:

yarn develop

Strapi Settings

In the first run you'll need to create a new Strapi user. Then, in order to get things ready for the app's front-end you need to adjust some settings.

Follow the following steps:

Set access permission settings

  1. Go to Settings > Users & Permissions plugin > Roles:
  2. Set Authenticated permissions:
  • Attendee (select all)
  • Event (select all)
  • Feature-flag (find)
  • FAQ (find)
  • Location (select all)
  • Profile (select all)
  • Content Builder (none)
  • Email (none)
  • 18in (none)
  • Upload (destroy, find, findOne, upload)
  • Users Permissions (Auth: connect, user: me)
  1. Set Public permissions:
  • Attendee (find)
  • Event (find)
  • Feature-flag (find)
  • FAQ (find)
  • Location (find)
  • Profile (find)
  • Content Builder (none)
  • Email (none)
  • 18in (none)
  • Upload (find, findOne)
  • Users Permissions (Auth: callback, Auth: connect, Auth: register, user: me)

Set feature flags

  1. Go to Content manager > Feature Flag
  2. Create new entries:
  • name: AVATAR_UPLOAD, enabled: TRUE
  • name: BOUNDS, enabled: FALSE
  • name: EVENTS, enabled: TRUE
  • name: MARKER_CLUSTERER, enabled: TRUE
  • name: TRAVELS, enabled: FALSE