Skip to content

React app that allows public exploration of Terrastories communities (opt-in)

Notifications You must be signed in to change notification settings

digidem/explore-terrastories

 
 

Repository files navigation

Explore Terrastories

CI Deploy

A web application for public exploration of community stories shared through Terrastories.

Overview

Explore Terrastories allows communities to share their place-based stories publicly. It connects to a Terrastories server API to display unrestricted stories that communities have opted to share.

Built with:

📚 Documentation: docs.terrastories.app

Prerequisites

Setup

1. Install Dependencies

npm install

2. Configure API Connection

Create a .env file with your Terrastories API endpoint:

VITE_API_BASE=https://your-terrastories-server.com

3. Configure CORS

Add your Explore Terrastories host to the CORS_ORIGINS variable in your Terrastories server's .env.api file:

CORS_ORIGINS=http://localhost:1080,https://your-explore-domain.com

Development

Start the development server:

npm run dev

Open http://localhost:1080 to view the app.

Testing

# Run unit tests
npm test

# Run E2E tests
npm run test:e2e

# Run E2E tests with UI
npm run test:e2e:ui

# Type checking
npm run lint

Deployment

Build for Production

npm run build

The optimized build will be output to the dist/ folder.

Preview Production Build

npm run serve

GitHub Pages

Deployment to GitHub Pages happens automatically on push to main via GitHub Actions.

Project Structure

src/
├── components/     # React components
├── utils/          # Utility functions
├── translations/   # i18n translations
└── setupTests.ts   # Test configuration

Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests to the main branch.

License

See LICENSE file for details.

Related Projects


Developed by Awana Digital

About

React app that allows public exploration of Terrastories communities (opt-in)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.3%
  • CSS 5.3%
  • Other 1.4%