Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal local development setup #3

Closed
RobertBolender opened this issue May 24, 2017 · 4 comments
Closed

Minimal local development setup #3

RobertBolender opened this issue May 24, 2017 · 4 comments

Comments

@RobertBolender
Copy link

Fantastic live demo!

I just tried to clone the project and run it locally, and I've run into a few things:

Module not found: Error: Can't resolve '../../settings' in '/home/bob/projects/personal/notational/src/store'

There needs to be some settings.json (or settings.js?) in the project root, but that is ignored by git and there is no sample file.

Could you please add a sample of the minimal settings file needed to get this up and running locally?

I'm not familiar with Firebase, will I need to sign up for it to run this project locally?

@RobertBolender
Copy link
Author

RobertBolender commented May 24, 2017

I managed to get this working locally.
I signed up for a Firebase account and created a new project. It presented me with configuration options for integrating with a web app. I pasted these into a settings.js file in the project root, looking something like this:

ENV = {
  firebase: {
    apiKey: "",
    authDomain: "",
    databaseURL: "",
    projectId: "",
    storageBucket: "",
    messagingSenderId: ""
  }
};

I had to enable the Firebase email/password authentication provider.
I also had to add an entry to the database to prevent a JS error in the app:

key: default_notes
value: notes

I'm still getting a 404 on /styles.css, but otherwise the app seems to be working well!

@cdock1029
Copy link

For future reference, after creating a firebase app you can find this config data at:

Firebase Console

  • click Your-firebase-project-name
  • Authentication tab
  • top right button "Web Setup"

@tmm
Copy link
Member

tmm commented May 24, 2017

@awesomebob great point! I will add this to the README.md so others can benefit.

@tmm tmm closed this as completed May 24, 2017
@IOriens
Copy link

IOriens commented May 25, 2017

Do I need to paste the database.rules.json file on firebase's Database->Rules config tab? Actually, after doing so, the error 'permission_denied at /default_notes/notes' disappeared from my console.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants