GithubHelp home page GithubHelp logo

hknakn / sleepapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 17.06 MB

A sleep tracking app that displays the user's sleep data.

JavaScript 10.26% Shell 0.21% TypeScript 81.32% Ruby 2.28% Kotlin 2.70% Objective-C 2.39% Objective-C++ 0.85%

sleepapp's Introduction

Eight Sleep App

Preview

preview.mp4

Tech Stack

Features

  • Great looking charts
  • Dark / Light mode
  • Responsive UI
  • Localization
  • E2E testing

Decisions

  1. Started with a react native boilerplate to save time and focus on the features. I used it before and I was familiar with it. It has a good structure and it's easy to add new features.
  2. Used Victory Native for the charts. It has good documentation and it's easy to use. It has a lot of features, performant and easy to customize.
  3. Used Moment.js for date formatting. It's the best library for date formatting.
  4. Used Detox for E2E testing. It's a great library for E2E testing and it's easy to use.
  5. Used Circular Progress Indicator to display the sleep score. Saw something similar on Eight Sleep and wanted to replicate it.

Improvements

  1. Fetch the data from an API.
  2. Adding detailed tests for both the UI and the logic.

Installation

  1. Clone the repository git clone https://github.com/hknakn/SleepApp.git
  2. Install the dependencies npm install
  3. Install the pods npx pod install
  4. Run the app npx react-native run-ios

Testing

  1. Follow the installation steps for detox here.
  2. Run detox build --configuration ios.sim.release command to build tests.
  3. Run detox test --configuration ios.sim.release command to run the tests.

sleepapp's People

Contributors

hknakn avatar

Stargazers

 avatar

Watchers

Donato Aguirre 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.