Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amarjanica/react-native-sqlite-expo-demo
Demo expo app with expo-sqlite module demonstrating sqlite integration tests and db migrations
https://github.com/amarjanica/react-native-sqlite-expo-demo
Last synced: about 2 months ago
JSON representation
Demo expo app with expo-sqlite module demonstrating sqlite integration tests and db migrations
- Host: GitHub
- URL: https://github.com/amarjanica/react-native-sqlite-expo-demo
- Owner: amarjanica
- Created: 2024-09-26T18:51:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-11T06:12:01.000Z (3 months ago)
- Last Synced: 2024-11-24T19:31:29.920Z (about 2 months ago)
- Language: TypeScript
- Size: 299 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native SQLite Expo Demo
A demo application built with Expo and React Native, showcasing the integration of SQLite
using expo-sqlite within an expo-router project. This app serves as an example of:
- Database SQLite Migration
- Integration Testing: Run integration tests for expo-sqlite in a Node.js environment.
The app functions as a simple "CRUD" (Create, Read, Delete) tasks manager.Read more about it in my blog post on [expo sqlite migrations and integration testing](https://www.amarjanica.com/bridging-the-gap-between-expo-sqlite-and-node-js/)
or [watch my YT tutorial](https://youtu.be/5OBi4JtlGfY).# App Screenshot
# Run it on Android
I've tested this demo only on android emulator.
```sh
npm i
# runs on expo go
npm run go:android
# or run on expo dev client
npm run dev:android
```# Tests
Tests don't need an emulator. They're just `jest` tests that you can run with `npm test` like any nodejs project.