• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

colossal-koalas/colossal-koalas: moodlet - interactive web journal application f ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

colossal-koalas/colossal-koalas

开源软件地址:

https://github.com/colossal-koalas/colossal-koalas

开源编程语言:

JavaScript 78.1%

开源软件介绍:

Moodlet

A platform for mood-tracking, microjournaling, self-reflection, and mindfulness.

Team

Cynthia Chen @cynthiaechen

Laura Knight @ljknight

Cameron Martin @camhux

Michael Sova @red-starter

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Gulp Scripts

Usage

To run the server in production mode, first install the production dependencies: npm install -p

Then, the server can be started with npm start. Two additional environment variables must be set for the server to run. Set DATABASE_URL to the proper database for your Postgres/MySQL server, and set TOKEN_SECRET to some string you'd like used to create JWTs for session authentication.

Requirements

Server:

  • Node >0.12.0
  • Express >4.0.0
  • Sequelize >2.0.0

Client:

  • Angular (with ui-router)
  • D3

Development

Installing Dependencies

From within the root directory: npm install

Gulp Scripts

Several useful developer scripts are configured in gulpfile.js. You must configure a .env.json for most of these to work, however, which will contain the same environment variables required for the server to run normally. See example.env.json for a template.

gulp style will run jscs (if you have it installed) and attempt to fix all style errors automatically. Errors that it can't fix automatically will be displayed.

gulp start will run the local server in production mode without you needing to manually set the environment variables.

gulp dev-start will run the local server in test mode (which connects to a separate, always-wiped-clean database schema), with nodemon instead of node to watch for changes.

gulp test will start the server in test mode, run server/spec/spec.js against the server's API endpoints, then stop the server.

gulp db-test will start just the database interface in test mode (which connects to the same separate, always-clean schema as before), and then run server/database/spec/spec.js against the Sequelize interface to the database.

gulp db-reset will start the database interface in reset mode, which will drop all tables in the live schema, not the test schema and then exit the process. Use this should you ever need to fix the tables of your database's main schema.

Roadmap

View the project roadmap here




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
approvals/ApprovalTests.Net.Koans: Helpful examples to learn ApprovalTests发布时间:2022-07-10
下一篇:
Next · GitHub发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap