Skip to content
Merged

Deps #30

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ GATSBY_SRC_ROOT=src
GATSBY_PRINT_CONFIG=false
SITE_URL=http://localhost:8000/

# Directus local
# DIRECTUS_URL=http://localhost:8055
# DIRECTUS_TOKEN=<MY_PERSONAL_ACCESS_TOKEN_FROM_DIRECTUS>

# Directus
DIRECTUS_URL=http://localhost:8055
DIRECTUS_URL=https://admin.moscowjs.org
DIRECTUS_TOKEN=<MY_PERSONAL_ACCESS_TOKEN_FROM_DIRECTUS>

# BFF API
Expand Down
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ By contributing to moscowjs.org, you agree to abide by the [code of conduct](/co
```
git clone https://github.com/MoscowJS/moscowjs.org
cd moscowjs.org
n auto # or nvm use
npm install
```

Expand All @@ -22,19 +23,20 @@ npm install

## Development

To start local development, you need a personal access token for Airtable. Create the one on https://airtable.com/create/tokens (you need read access
for Meetups and MoscowJS.org bases).
### How to develop locally

Add created token to the file `.env.development.local`
1. Create env file
- Retrieve directus token from Directus admin panel and put it to DIRECTUS_TOKEN value

## Data sources
```
cp .env.example .env
```

2. Run develop script

1. Pages — https://airtable.com/shrESYQUdFwE3B9Pw
2. Navigation — https://airtable.com/shrVjBdqtUMxPXkI4
3. Events — https://airtable.com/shrriv6tz5JOHmO8g
4. Talks — https://airtable.com/shrxodFEExyrch9A6
5. Speakers — https://airtable.com/shrDgVtkzHCh8wKv1
6. Companies — https://airtable.com/shrspKnmfnArZ3XQJ
```
node --require dotenv/config node_modules/.bin/gatsby build -- --verbose
```

## License

Expand Down
Loading