{"id":13719258,"url":"https://github.com/VulcanJS/enka-stack","last_synced_at":"2025-05-07T11:31:26.023Z","repository":{"id":37525229,"uuid":"489249357","full_name":"VulcanJS/enka-stack","owner":"VulcanJS","description":"Alias for Eurodance stack","archived":false,"fork":false,"pushed_at":"2022-07-21T18:19:21.000Z","size":495,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T10:28:34.563Z","etag":null,"topics":["graphql","remix-stack","vulcanjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VulcanJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-06T06:56:32.000Z","updated_at":"2023-03-05T07:14:23.000Z","dependencies_parsed_at":"2022-07-12T16:21:36.476Z","dependency_job_id":null,"html_url":"https://github.com/VulcanJS/enka-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fenka-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fenka-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fenka-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fenka-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VulcanJS","download_url":"https://codeload.github.com/VulcanJS/enka-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252549073,"owners_count":21766307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","remix-stack","vulcanjs"],"created_at":"2024-08-03T01:00:45.236Z","updated_at":"2025-05-07T11:31:25.960Z","avatar_url":"https://github.com/VulcanJS.png","language":"TypeScript","readme":"# Vulcan Eurodance Stack\n\n![The Remix Eurodance Stack 🇪🇺 🐸 🛵](https://raw.githubusercontent.com/VulcanJS/vulcan-npm/main/docusaurus/static/img/remix/eurodance-banner.jpeg)\n_Based on Remix [Indie Stack](https://github.com/remix-run/indie-stack)_\n\n\u003c!--![The Remix Eurodance Stack](https://repository-images.githubusercontent.com/465928257/a241fa49-bd4d-485a-a2a5-5cb8e4ee0abf)--\u003e\n\nEurodance Stack is the Remix stack for **GraphQL** developers.\n\nLearn more about [Remix Stacks](https://remix.run/stacks).\n\n```\nnpx create-remix --template VulcanJS/eurodance-stack\n```\n\nYou can also run Eurodance Stack on [CodeSandbox Projects](https://projects.codesandbox.io/). As it is currently in beta (06/2022), you need to ask for an early access, and then search for \"VulcanJS/eurodance-stack\" when creating your project.\n\n**NOTE: if you clone this repo directly, and don't use `create-remix`, you will need to run `yarn remix init` manually after the first install!**\n\n## What's in the stack\n\n### From Vulcan (work in progress):\n\n**GraphQL**\n\n- Invisible GraphQL: work transparently with GraphQL, without ever depending client-side\n\n**Vercel deployment**\n\nRemix stacks hosts on Fly out-of-the-box.\nFor historical reasons Vulcan prefers Vercel, but you can deploy your Remix app almost anywhere very easily.\n\n- We already setup remix to run a specific \"vercel.server.js\" on Vercel\n- We already set a minimum vercel.json\n- Create a new project on Vercel or run Vercel CLI to setup the project: `vercel` (answer the questions)\n- IMPORTANT: add a `SESSION_SECRET` to your Vercel app secrets, to do this you can run the following commands:\n  ```sh\n  vercel env add SESSION_SECRET=$(openssl rand -hex 32)\n  ```\n  If you don't have openssl installed, you can also use [1password](https://1password.com/password-generator/) to generate a random secret, just replace `$(openssl rand -hex 32)` with the generated secret.\n- If using SQLite, set `DATABASE_URL` to `file:./tmp/data/data.db?connection_limit=1`. **Important note: the data will not persist!**\n**This is only for demonstration purpose.** You should find an host that supports SQLite or wait until we introduce MongoDB in this stack.\n\n**CodeSandbox Projects**\n\nEurodance supports being installed as a CodeSandbox Project (beta feature).\n\n**Storybook**\n\nBasic setup with Vite, but also [@storybook/testing-react](https://storybook.js.org/addons/@storybook/testing-react). This brilliant addon lets you import your stories in unit tests.\n\n***Embrace Story Driven Development:***:\n\n1. Develop components visually in isolation with Storybook\n2. Share with your designers and teammates to validate the behaviour and appearance\n3. Import your stories in a Vitest unit test\n4. Automate testing and prevent regression with React Testing Library\n\n### Incoming\n\n**MongoDB supports (via Prisma)**\n\nRemix stacks works with Prisma out-of-the-box, and various databases.\nFor historical reasons, Vulcan prefers Mongo, but you can switch very easily to any database.\n\n**Advanced GraphQL**\n\n- A GraphQL resource route with [GraphQL Yoga](https://www.graphql-yoga.com/)\n- Vulcan Fire Engine\n\n\n[And many others, follow the umbrella ticket on GitHub to learn more about our roadmap.](https://github.com/VulcanJS/vulcan-npm/issues/117)\n\n### Features inherited from Remix Indie stack:\n\n- [Fly app deployment](https://fly.io) with [Docker](https://www.docker.com/)\n- Production-ready [SQLite Database](https://sqlite.org)\n- Healthcheck endpoint for [Fly backups region fallbacks](https://fly.io/docs/reference/configuration/#services-http_checks)\n- [GitHub Actions](https://github.com/features/actions) for deploy on merge to production and staging environments\n- Email/Password Authentication with [cookie-based sessions](https://remix.run/docs/en/v1/api/remix#createcookiesessionstorage)\n- Database ORM with [Prisma](https://prisma.io)\n- Styling with [Tailwind](https://tailwindcss.com/)\n- End-to-end testing with [Cypress](https://cypress.io)\n- Local third party request mocking with [MSW](https://mswjs.io)\n- Unit testing with [Vitest](https://vitest.dev) and [Testing Library](https://testing-library.com)\n- Code formatting with [Prettier](https://prettier.io)\n- Linting with [ESLint](https://eslint.org)\n- Static Types with [TypeScript](https://typescriptlang.org)\n\nNot a fan of bits of the stack? Fork it, change it, and use `npx create-remix --template your/repo`! Make it your own.\n\n## Quickstart\n\nClick this button to create a [Gitpod](https://gitpod.io) workspace with the project set up and Fly pre-installed\n\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)\n\n## Development\n\n- This step only applies if you've opted out of having the CLI install dependencies for you:\n  \n  ```sh\n  npx remix init\n  ```\n\n- Initial setup: _If you just generated this project, this step has been done for you._\n\n  ```sh\n  npm run setup\n  ```\n\n- Start dev server:\n\n  ```sh\n  npm run dev\n  ```\n\nThis starts your app in development mode, rebuilding assets on file changes.\n\nThe database seed script creates a new user with some data you can use to get started:\n\n- Email: `rachel@remix.run`\n- Password: `racheliscool`\n\n### Relevant code:\n\nThis is a pretty simple note-taking app, but it's a good example of how you can build a full stack app with Prisma and Remix. The main functionality is creating users, logging in and out, and creating and deleting notes.\n\n- creating users, and logging in and out [./app/models/user.server.ts](./app/models/user.server.ts)\n- user sessions, and verifying them [./app/session.server.ts](./app/session.server.ts)\n- creating, and deleting notes [./app/models/note.server.ts](./app/models/note.server.ts)\n\n## Deployment with Fly\n\n**NOTE: in Eurodance stack we favour Vercel deployment. We have commented out Fly related setup.**\n**You can easily remove Vercel and reenable FLy.**\n\nThis Remix Stack comes with two GitHub Actions that handle automatically deploying your app to production and staging environments.\n\nPrior to your first deployment, you'll need to do a few things:\n\n- [Install Fly](https://fly.io/docs/getting-started/installing-flyctl/)\n\n- Sign up and log in to Fly\n\n  ```sh\n  fly auth signup\n  ```\n\n  \u003e **Note:** If you have more than one Fly account, ensure that you are signed into the same account in the Fly CLI as you are in the browser. In your terminal, run `fly auth whoami` and ensure the email matches the Fly account signed into the browser.\n\n- Create two apps on Fly, one for staging and one for production:\n\n  ```sh\n  fly create vulcan-remix\n  fly create vulcan-remix-staging\n  ```\n\n  - Initialize Git.\n\n  ```sh\n  git init\n  ```\n\n- Create a new [GitHub Repository](https://repo.new), and then add it as the remote for your project. **Do not push your app yet!**\n\n  ```sh\n  git remote add origin \u003cORIGIN_URL\u003e\n  ```\n\n- Add a `FLY_API_TOKEN` to your GitHub repo. To do this, go to your user settings on Fly and create a new [token](https://web.fly.io/user/personal_access_tokens/new), then add it to [your repo secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) with the name `FLY_API_TOKEN`.\n\n- Add a `SESSION_SECRET` to your fly app secrets, to do this you can run the following commands:\n\n  ```sh\n  fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app vulcan-remix\n  fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app vulcan-remix-staging\n  ```\n\n  If you don't have openssl installed, you can also use [1password](https://1password.com/password-generator/) to generate a random secret, just replace `$(openssl rand -hex 32)` with the generated secret.\n\n- Create a persistent volume for the sqlite database for both your staging and production environments. Run the following:\n\n  ```sh\n  fly volumes create data --size 1 --app vulcan-remix\n  fly volumes create data --size 1 --app vulcan-remix-staging\n  ```\n\nNow that everything is set up you can commit and push your changes to your repo. Every commit to your `main` branch will trigger a deployment to your production environment, and every commit to your `dev` branch will trigger a deployment to your staging environment.\n\n### Connecting to your database\n\nThe sqlite database lives at `/data/sqlite.db` in your deployed application. You can connect to the live database by running `fly ssh console -C database-cli`.\n\n### Getting Help with Deployment\n\nIf you run into any issues deploying to Fly, make sure you've followed all of the steps above and if you have, then post as many details about your deployment (including your app name) to [the Fly support community](https://community.fly.io). They're normally pretty responsive over there and hopefully can help resolve any of your deployment issues and questions.\n\n## GitHub Actions\n\nWe use GitHub Actions for continuous integration and deployment. Anything that gets into the `main` branch will be deployed to production after running tests/build/etc. Anything in the `dev` branch will be deployed to staging.\n\n## Testing\n\n### Cypress\n\nWe use Cypress for our End-to-End tests in this project. You'll find those in the `cypress` directory. As you make changes, add to an existing file or create a new file in the `cypress/e2e` directory to test your changes.\n\nWe use [`@testing-library/cypress`](https://testing-library.com/cypress) for selecting elements on the page semantically.\n\nTo run these tests in development, run `npm run test:e2e:dev` which will start the dev server for the app as well as the Cypress client. Make sure the database is running in docker as described above.\n\nWe have a utility for testing authenticated features without having to go through the login flow:\n\n```ts\ncy.login();\n// you are now logged in as a new user\n```\n\nWe also have a utility to auto-delete the user at the end of your test. Just make sure to add this in each test file:\n\n```ts\nafterEach(() =\u003e {\n  cy.cleanupUser();\n});\n```\n\nThat way, we can keep your local db clean and keep your tests isolated from one another.\n\n### Vitest\n\nFor lower level tests of utilities and individual components, we use `vitest`. We have DOM-specific assertion helpers via [`@testing-library/jest-dom`](https://testing-library.com/jest-dom).\n\n### Type Checking\n\nThis project uses TypeScript. It's recommended to get TypeScript set up for your editor to get a really great in-editor experience with type checking and auto-complete. To run type checking across the whole project, run `npm run typecheck`.\n\n### Linting\n\nThis project uses ESLint for linting. That is configured in `.eslintrc.js`.\n\n### Formatting\n\nWe use [Prettier](https://prettier.io/) for auto-formatting in this project. It's recommended to install an editor plugin (like the [VSCode Prettier plugin](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)) to get auto-formatting on save. There's also a `npm run format` script you can run to format all files in the project.\n\n---\n\n## They support Vulcan\n\n### Contributors\n\nThis project exists thanks to all the people who contribute.\n\n\u003ca href=\"https://github.com/VulcanJS/vulcan-next/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/vulcan/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/vulcan#contribute)]\n\n\u003ca href=\"https://opencollective.com/vulcan#contributors\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/vulcan/backers.svg?width=890\"/\u003e\u003c/a\u003e\n\n### Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/vulcan#contribute)]\n\n\u003ca href=\"https://opencollective.com/vulcan#contributors\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/vulcan/sponsors.svg?width=890\"/\u003e\u003c/a\u003e\n\n### Technical supports\n\nThey give time and share knowledge to support the project.\n\n\u003ca href=\"https://aplines.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n\u003cimg src=\"https://aplines.com/wp-content/uploads/2022/03/cropped-aplines-logo.png\" alt=\"aplines\" height=\"75\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.lbke.fr\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n\u003cimg src=\"https://www.lbke.fr/img/logo-md.png\" height=\"75\" alt=\"lbke\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://letter.so/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n\u003cimg src=\"https://github.com/VulcanJS/vulcan-next/blob/devel/public/img/letter-96x96.png?raw=true\" height=\"75\" alt=\"lette.so\" /\u003e\n\u003c/a\u003e\n\n## Other cool stuff that inspires us\n\n- [remix-graphql](https://github.com/thomasheyenbrock/remix-graphql) served as a basis to setup GraphQL in Remix\n\n---\n\n[![Powered by Vercel](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)](https://vercel.com?utm_source=vulcan\u0026utm_campaign=oss)\n","funding_links":["https://opencollective.com/vulcan"],"categories":["Starter"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVulcanJS%2Fenka-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVulcanJS%2Fenka-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVulcanJS%2Fenka-stack/lists"}