Git Product home page Git Product logo

today's Introduction

This is a Next.js 13 app with Tailwindcss, Jest, and Prisma.

About the app

This app will calculate your today's score by asking simple yes or no questions about today's activity or mood. For example: "Did you work out today?" or "Did you eat healthy today?".

Because the value of activity or mood could be different from one another, each question could have a different weight to the final score.

Getting Started

First, install the dotenv-cli package:

yarn global add dotenv-cli

Create two databases, for the local & test environment, the DBs name is up to you. You can use any database you want as long as Prisma supported it.

Create two .env files, .env.test & .env.local and set the DATABASE_URL in each file with the corresponding connection URLs like this:

# .env.local
DATABASE_URL=mysql://ziya:my_password@localhost:3306/strive
# .env.test
DATABASE_URL=mysql://ziya:my_password@localhost:3306/strive_test

Migrate the databases

yarn migrate
yarn migrate:test

Before you can use the app locally, you need to manually insert questions data first. Run yarn studio to run Prisma studio and insert your questions.

Run the app locally:

yarn dev

Run the integration tests:

yarn test

today's People

Contributors

zelief avatar

Watchers

 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.