
Our app has two environment variables, as we can see in the sample env file, REACT_APP_FAUNA_KEY, and REACT_APP_SECRET_KEY. : This modal is shown when a user previews a password. Passwords.js: This component renders the passwords and is imported into the app dashboard.
#VAULT PASSWORD MANAGER NPM UPDATE#
The component exported in the flash.js file is used for flashing messages across the app.Ĭ: This is a modal that is shown when trying to create a new password.Į: This modal is shown when a user tries to update a password. The following components are created in the components folder:įlash: This folder contains a flash.js and a flash.css file. Src/components: This is the folder where we create all the components in the app. The following screens are defined in the screen folder: Src/screens: This folder is where all the pages(screens) we have in the app are defined.

In this application, we will be creating the following indexes: To create a Fauna index, click on the indexes section on the left of your dashboard.

Indexes can be created using one or more fields of a database collection. Use indexes to quickly find data without searching every document in a database collection every time a database collection is accessed. Enter only the collection name ( users), then click save and do the same for the second collection ( passwords).

To create these collections, click on the database you created, click New Collection. The user collection is where we’ll be storing our user data, while the passwords collection is where we’ll be keeping all the password data. In the app we’re creating, we’ll have two collections, users and passwords. A collection acts similar to a table in a traditional SQL database. Next, click on the New Database button, enter the database name, and click enter.Ī collection is a grouping of documents(rows) with the same or a similar purpose. To create a fauna database, head to the fauna dashboard.

This article will walk you through how I built a password manager with React JS and Fauna. Building A Google Password Manager Clone With React JS and FaunaĪuthored in connection with the Write with Fauna program.
