GithubHelp home page GithubHelp logo

rsayyed591 / noteapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 192 KB

This is a straightforward note-taking application built using React Native and SQLite. It allows users to create, read, update, and delete notes, with data persistence achieved through SQLite database storage.

JavaScript 100.00%

noteapp's Introduction

Simple Note-Taking App with React Native and SQLite

This is a straightforward note-taking application built using React Native and SQLite. It allows users to create, read, update, and delete notes, with data persistence achieved through SQLite database storage.

Features

  • Database Initialization: Upon initialization, the app sets up an SQLite database named 'notes.db' and creates a 'notes' table to store note entries, including fields for id, title, and content.
  • State Management: The component manages state using the useState hook, storing notes in the 'notes' state array and handling input values for note titles and content.
  • CRUD Operations: Users can perform basic CRUD operations on notes:
    • Create: Add a new note by entering a title and content and tapping the "Add Note" button.
    • Read: View all existing notes displayed within a ScrollView, showing titles, content, and an option to delete each note.
    • Update: Notes can be updated by first deleting the existing note and then adding a new one with modified content.
    • Delete: Remove a note by tapping the "Delete" button associated with each note entry.
  • Database Handling: The app utilizes the expo-sqlite package for database operations:
    • Adding a note involves inserting a new record into the 'notes' table.
    • Fetching notes entails executing a SELECT query to retrieve all entries from the database.
    • Deleting a note is achieved by executing a DELETE query based on the note's id.
  • Styling: Basic styling using StyleSheet.create defines the appearance of input fields, notes, and their respective containers.

Installation

To run the app locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/rsayyed591/noteapp.git
    
  2. Navigate to the project directory:
    cd noteapp
    
  3. Install dependencies:
    npm install
    
  4. Start the application:
    npm start
    
  5. Ensure you have an Expo development environment set up to run the application on your preferred platform.

Technologies Used

  • React Native
  • SQLite
  • expo-sqlite

Acknowledgements

Special thanks to the developers of React Native, SQLite, and expo-sqlite for providing the tools necessary to build this application.

Credits

This project was created by [Rehan Sayyed]. Feel free to contribute or report issues on the GitHub repository.

noteapp's People

Contributors

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