Skip to content

Spike created to practice writing a new book object to the Firestore database.

Notifications You must be signed in to change notification settings

ursa1minor/firestore-test

Repository files navigation

# Project Description

This repo contains a test project created during Northcoders final group project.

The main project is Bibliotech - a peer-to-peer booklending app:
https://github.com/defective-pikachu

My fork of the group project is here: https://github.com/ursa1minor/bibliotech

This repo is a sandbox for writing a new book object to the Firestore database.

Both this project and Bibliotech were created using React Native with Expo, linked to Firebase Firestore database.

The group project blog can be found here: https://werewallies.wordpress.com/

# React Native with Expo setup:

https://reactnative.dev/docs/environment-setup

    npx create-expo-app AwesomeProject

    cd AwesomeProject

    npm start 

(You can also use: npx expo start)

# Firebase Firestore:

https://firebase.google.com/docs/firestore

Both this application and Bibliotech were added to Firebase as web applications.

While Bibliotech uses Firebase authorisation, this project does not.

This project is a sandbox for writing a new book object to the Firestore database.

When transferring this functionality to Bibliotech, we also included a field for to capture authorised user's unique id from Firebase.auth.

We also made our addBook form require input for only 'title', author details and location, as the rest of the data will not be gathered using user input.

# Dependencies:

After cloining this repo, install dependencies at the command line:

    npm i 

# Run

Run from the command line:

    npm start

Type w to view in web browser

Or use the QR code to view on a phone with Expo app
    iOS: use phone camera to read QR code
    Android: use Expo app to read QR code
N.B. Both the phone and the computer must be on the same local network.
    

About

Spike created to practice writing a new book object to the Firestore database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published