Giter VIP home page Giter VIP logo

npoint's Introduction

n:point CircleCI

npoint.io is a lightweight data store for your app or prototype.

Save FAQ answers, customer stories, configuration data, or anything else that will fit in a JSON blob. Then access your data directly via API.

Once your app is live, come back later to edit your saved JSON without having to redeploy. Or share a login with a friend so they can help you experiment! Features like schmema validation and locking mean you can make these changes confidently, without breaking your app.

Demo screenshot

Contributing

Contributions are welcome!

Please open an issue to discuss proposed changes, rather than opening a pull request directly.

Development

Setup

yarn
bundle

Running locally

rails s -p 3001
yarn dev

Testing

Setup:

  1. Install Chrome
  2. Install chromedriver (brew install chromedriver on mac)
rspec
yarn test  # no jest tests yet

Important note: Rspec integration tests run against the compiled version of the app in app/assets. Build with yarn build first, or set up capybara to run against your live webpack version (I haven't done this yet, but have ideas in spec_helper.rb).

Maintaining

Production build

# 1. Build files
yarn build

# 2. Make an "Add build files" commit
git commit -a -m "Add build files"

Deploying

Push to master. This deploys staging.

Deploy prod manually via render UI.

Similar Tools

Bookmarks

Self-hosting

Want to run your own instance of n:point? Go right ahead!

I'd recommend setting it up on render.com, which is what I use for npoint.io.

  1. Set up a hosted Potsgres DB in render, and make sure DATABASE_URL points there
  2. Configure environment variables. You'll at least need HOST (e.g. npoint.io)
  3. Use these render settings:
# build command
./build.sh

# start command
./start.sh

The one piece of the app that won't work is password-reset emails, which go through a Sendgrid account. I recommend deleting the code for this and handling it yourself.

Codebase TODOs / Wishlist

  • Add sentry or similar error collection service (search: TODO(sentry))
  • Self-host and use privacy-respecting analytics (search: TODO(self-host))
  • More testing (search: TODO(test))

Copyright & License

Copyright (c) 2017-2018 Alexander Zirbel - Code released under the MIT license.
n:point and the n:point logo are the property of Alexander Zirbel.

npoint's People

Contributors

azirbel avatar prettierci-commits avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.