Coder Social home page Coder Social logo

video's Introduction

Private App Template

Rails template for creating private apps. This template includes:

  • sqlite3 for production with the database on the local machine
  • Devise for user accounts
  • Users can be "admins" or regular users
  • Admins can create more user accounts
  • No credentials (like database) are embedded in the app
  • .env file created at deployment for credentials (like AWS S3)
  • ActiveStorage on S3 for production (should be easy to change to :local)
  • Existing Home page: welcome#home
  • Access restricted to logged in users

The core idea of apps built on this template is that it is for private use, think friends-and-family. You create an account for your friend and share their credentails with them manually through another channel. Some projects I've built on this model are private blogs, a family tree, or an app to share childhood family videos.

Things you don't need to worry about with this model:

  • Bots. Users must be logged in, only admins can create accounts
  • Email config. No built-in user-initiated account creation, password-reset flow involves reaching out to admin directly. You don't need email (or DKIM config, or mailgun/sendgrid/whatever)

Deployment notes:

  • Create a .env file with any credentials when you deploy.
  • Create your first user from the rails console: User.create! email: "#{EMAIL}", name: "", admin: 1, password: "#{PASS}"

video's People

Contributors

mawise avatar

Watchers

 avatar  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.