项目作者: AndrewJBateman

项目描述 :
:clipboard: Angular with Firestore-Lite to create very compact code for simple firestore database access
高级语言: TypeScript
项目地址: git://github.com/AndrewJBateman/angular-firestore-lite.git
创建时间: 2021-02-15T21:19:11Z
项目社区:https://github.com/AndrewJBateman/angular-firestore-lite

开源协议:

下载


Angular Supabase Access

  • Angular frontend Authentication form with a Supabase PostgreSQL database backend
  • Tutorial code from Domini Code - in Spanish
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size
GitHub pull requests
GitHub Repo stars
GitHub last commit

:page_facing_up: Table of contents

:books: General info

  • Supabase is an open-source alternative to Firebase, but uses PostgreSQL instead of document database. Database is realtime & can use SQL joins. Realtime notifications via Websockets. RESTful API requires no backend code.
  • I had to have CORS Access Control Allow Origin enabled for this to work

:camera: Screenshots

Example screenshot

:signal_strength: Technologies

:floppy_disk: Setup

  • npm i to install dependencies then…
  • Create free account with Supabase and setup email auth
  • add Supabase credentials to environments/environment.ts
  • ng serve for a dev server. Navigate to http://localhost:4200/ - app will automatically reload if you change any of the source files
  • npm run build for a build folder with production configuration

:flashlight: Testing

  • ng test to execute the unit tests via Karma.
  • ng e2e to execute the end-to-end tests via Protractor.

:computer: Code Examples

  • function to call signout function from auth service & catch errors (by Domini Code)
  1. async onLogout(): Promise<void> {
  2. try {
  3. await this.authSvc.signOut();
  4. } catch (error) {
  5. console.log(error);
  6. }
  7. }

:cool: Features

  • Supabase user interface is cool to work with.
  • User session stored in local storage, cleared upon user logout

:clipboard: Status & To-Do List

  • Status: Working
  • To-Do: Nothing

:clap: Inspiration

:file_folder: License

  • N/A

:envelope: Contact