Giter VIP home page Giter VIP logo

flashcards's Introduction

Flashcards ๐Ÿง 

Flashcards is a simple CRUD app that allows users to create their own flashcards and categories, and lets them practice by showing them the cards (can be by order or random). The goal of this app is to demonstrate Distributed Tracing in Next.js using Sentry.

Running it locally

To get it up and running, first you'd need to rename the .example.env file to .env file. Then, you'd need to replace your DATABASE_URL value. You can use any MySQL service (like Cloud SQL or PlanetScale), or spin up a local MySQL instance. For the SENTRY_DSN and NEXT_PUBLIC_SENTRY_DSN paste your project's DSN string. For the NEXTAUTH_SECRET value you can use a random string generator. The value can also contain numbers and special characters. The Sentry values aren't required to run the app, so you can skip them for now.

Once you have the environment variables set, you can proceed to install the dependencies by running pnpm install.

Then you'd need to setup your database, so follow these instructions:

  1. Run npx prisma generate to generate the Prisma client based on the schema.
  2. Run npx prisma db push to initialize your database branch.
  3. Run npx prisma db seed to add demo data so you don't have to manually create the categories and flashcards.

When you're done with that, you can start the app locally by running pnpm dev and visiting localhost:3000.

You'll be met with a sign in screen. If you did the seed data, you can sign in with [email protected] as the email and admin as the password. Otherwise, you can create an account just by typing in your email and a password. The "sign in" is actually "sign in or register".

flashcards's People

Contributors

drguthals avatar nikolovlazar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.