Giter Club home page Giter Club logo

remix-integration-testing's Introduction

Remix Integration Testing Example

This is a fork of a project I've been working on creating a pomodoro timer app.

Development

  • Install OS Dependencies:

    brew install docker
    brew install tmux
    brew install overmind
  • Install Project dependencies:

    nvm i # install .nvmrc specified version of Node
    npm i
  • Setup .env files

    cp .env.example .env
    cp .env.example .env.test

    Be sure to visit these files and update the DATABASE_URL to match your DB settings.

  • Initial setup

    npm run setup # Run Remix postinstall scripts
    npm run db:up # Setup the database
    npm run db:migrate # Migrate the dev and test databases
    npm run db:seed # (Optional) Seed the database with a default user
  • Validate the app has been set up properly (optional):

    npm run validate
  • Start the Procfile:

    overmind start
  • Visit the app locally, open Storybook, and the Prisma Studio

This starts your app in development mode, rebuilding assets on file changes.

The database seed script creates a new user with some data you can use to get started:

Scripts

npm run db:down # Stop the docker container running the postgres db
npm run db:teardown # Stop the docker container and delete the local db files
npm run test # Run tests with vitest

remix-integration-testing's People

Contributors

drewlytle-st avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.