flatsheet

A realtime editor for curating data as a team.

Github星跟踪图

flatsheet

A realtime editor for curating data as a team. flatsheet.io

Join the chat at https://gitter.im/flatsheet/flatsheet

Current status

This version of Flatsheet is an in-progress rewrite using Node.js. The first version of Flatsheet was a Ruby on Rails prototype.

Many aspects of the project are incomplete, but things are far enough along that it will be useful if you want to install it and experiment in a development environment.

Want to see an early demo of the real-time editor? Go here: http://flatsheet-realtime.herokuapp.com/

Todos:

Open issues represent current todo list: github.com/flatsheet/flatsheet/issues

Getting started

There are two ways to get flatsheet running:

Option 1: clone the flatsheet repository

Cloning the repo is best for testing things out & developing flatsheet, but works fine for other purposes. You just have to be prepared to manually pull & merge changes to your server.

Steps:

Option 2: use flatsheet as an npm dependency

This is a good option for when you're using flatsheet in production, because you can make use of npm to install and update flatsheet.

Steps:

  • Create a directory name flatsheet for your project (or whatever you like)
  • Change directory cd flatsheet
  • Create a package.json file with npm init
  • Install flatsheet with npm: npm install flatsheet --save
  • Install the response module: npm install response --save

File/folder setup

  • Create a folder named data: mkdir data
  • Create a app.js file with this code:
var server = require('flatsheet')({
  site: {
    title: 'flatsheet',
    email: 'hi@example.com',
    url: 'http://127.0.0.1:3333',
    contact: 'your full name'
  },
  db: __dirname + '/data'
});

server.listen();
  • Create a .env file for secret config like sendgrid username/password:
SENDGRID_USER=yourusername
SENDGRID_PASS=yourpassword
  • Add a flatsheet script and a start script to the scripts field in your package.json file:
"scripts": {
  "flatsheet": "flatsheet",
  "start": "node app.js"
},
  • So your full package.json file should look something like this:
{
  "name": "flatsheet-example",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "flatsheet": "flatsheet",
    "start": "node app.js"
  },
  "author": "",
  "license": "ISC"
}
  • next create an admin user:

Create an admin user

  • Create an admin account by running npm run flatsheet accounts create-admin. You'll be prompted for email, username, & password.
  • You can run npm run flatsheet accounts list to see that your admin account was created.

Start the server

  • Now run npm start to start the server.
  • In development you can watch the css & js using npm run watch.
  • In development you can debug runnig npm run-script debug. You add breakpoints in the code with debugger
  • Go to http://127.0.0.1:3333 and log in with the admin account credentials.

Create a sheet

  • Log in
  • Click the New blank sheet button
  • Fill out the name and description

Invite users

  • Navigate to http://127.0.0.1:3333/accounts/invite
  • Enter email addresses, one address per line
  • Click "Send invitation"
  • Users will receive an email with a link they can click to create accounts

Support

This project is supported in part by a code sprint grant from OpenNews.

More info at the Flatsheet blog.

License

MIT

主要指标

概览
名称与所有者flatsheet/flatsheet
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2014-08-29 03:44:45
推送于2017-02-28 21:29:59
最后一次提交2017-02-28 13:29:40
发布数1
最新版本名称v0.10.1 (发布于 2017-02-28 13:29:40)
第一版名称v0.10.1 (发布于 2017-02-28 13:29:40)
用户参与
星数201
关注者数12
派生数17
提交数335
已启用问题?
问题数122
打开的问题数69
拉请求数29
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?