This is a sample project to demonstrate on how to use FaunaDB in ReactJS project. You can see the demo here:
- Clone this repository
$ git clone https://github.com/dkhd/reactjs-faunadb-simple-note-app.git
- Install all the dependencies
$ npm install
-
Set your secret key (read the documentation below)
-
Run the project
$ npm start
-
Register your FaunaDB account here https://fauna.com/
-
Follow this documentation to create your own secret key https://docs.fauna.com/fauna/current/security/keys
-
Create
.env
file in your root project directory -
Fill with
REACT_APP_FAUNADB_KEY='<YOUR_SECRET_KEY>'
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.