Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trialanderrororg/websites

Monorepo for many of the *.trialanderror.org websites
https://github.com/trialanderrororg/websites

astro blog job-board monorepo nextjs nx open-science strapi typescript

Last synced: 3 months ago
JSON representation

Monorepo for many of the *.trialanderror.org websites

Awesome Lists containing this project

README

        

# Center of Trial & Error

Monorepo used for creating https://trialanderror.org

## Structure

Most important are the three main applications

- `apps/frontend` - the actual Next.js website
- `apps/strapi` - the Strapi backend
- `apps/blog` - the Astro blog

The rest is just a bunch of packages that are used by the two main applications.

## Development

### Environment variables

The following environment variables are required for the frontend:

- `NEXT_PUBLIC_STRAPI_URL` - the URL of the Strapi backend
-

### Running

To start, you need to have the strapi instance running.

```bash
yarn
cd apps/strapi
yarn
yarn develop
```

Then you can start the main website in another terminal.

```bash
nx serve frontend
```

which will open up the website at http://localhost:4200

Or you can start the blog.

```bash
nx dev blog
```

which will open up the blog at http://localhost:3000

TODO: Figure out a way to seed the database with some initial data without having to manually create it in the admin panel or using the production database.

### Frontend