the fresh logo: a sliced lemon dripping with juice

Fresh Strapi

An open source Fresh Example Project using Redis and Strapi.

https://fresh-strapi.deno.dev

https://github.com/Hyprtxt/fresh-strapi.deno.dev

Made with Fresh

Like what you see? Please leave me a star!

Github Repo Stars

Configure it

You'll need a strapi install, and a redis server. You can install redis on your Strapi server. You can also use this project with local strapi and redis.

cp .env.example .env

Then open .env and add your secrets. You can use the same process to add secrets on Deno Deploy

Puppeteer Testing

This project also has code to help you test your site. Using fetch for the API routes, puppetteer for end to end testing, and GitHub actions for CI. That's right:

Puppeteer Testing integrated with Github Actions!

Try:

deno test -A

But you'll need to install chrome with this first:

PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@14.1.1/install.ts

(mac & linux, run deno test -A on windows and hopefully it will give you the right link)

Github Actions

Runs deno fmt and the Puppeteer tests on Github Actions using a Linux Host.

.github/workflows/deno.yml

Things to do

Setup the tests so they launch the project, and test that version.

Fresh Usage

Start the project:

deno task start

This will watch the project directory and restart as necessary.

Things to do