js13kgames.com

The source of the js13kgames.com website

  • 所有者: js13kGames/js13kgames.com
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

# js13kgames website

The source of the js13kgames.com website.

Installation

  1. Ensure Node 5 is installed, then go to the project folder and execute on a shell:
npm install
  1. Install Imagemagick

  2. Copy the .sqlite database in the root folder of the project

  3. Copy config.js.example as config.js and update fields as needed (for example: domain and the mailing section)

  4. Edit the migrations table (just once) in the .sqlite file:

ALTER TABLE migrations ADD COLUMN name varchar;

Note: Node 5 is used because of sqlite. To upgrade node, a new package for sqlite needs to be used.

Running

After installing, run all the migrations executing:

./node_modules/.bin/sequelize db:migrate

Then compile the assets with:

npm run compile

And finally, start the app with:

npm start

Then go to http://localhost:3000 and enjoy.

Development

To precompile your assets during development run:

gulp watch

This will process the SASS files in the source folder and write them to the public/assets folder of the site ready to
be used. Each change to the SASS file will trigger a new build.

To clean the assets:

gulp clean

Create new database migration

./node_modules/.bin/sequelize migration:create --name <name-of-your-migration>

Where <name-of-your-migration> is the name you want for your new migration file. Sequelize will create a new file at
the migrations folder with a name similar to 20170729220958-name-of-your-migration.js. Open that file and edit the
up and down sections accordingly.

CSS Methodology

The files are pre-processed SASS files. These are not processed at run time via express for performance reasons.

The files are arranged based on recommendations - http://thesassway.com/beginner/how-to-structure-a-sass-project and
generate a single main.css file.

The CSS is structured around 12 column grid bootstrap grid. Additional
styles use the BEM (block element modifier) methodology. In short this means styles are component based and do not
cascade preventing issues around importance.
See https://en.bem.info/methodology/ for more details.

Available Routes

js13kgames.com/                         -> index page for the current year
js13kgames.com/<year>                   -> index page for the given year
js13kgames.com/entries                  -> list of entries for the current year
js13kgames.com/<year>/entries           -> list of entries for the given year
js13kgames.com/<year>/entries/<slug>    -> details of the entry for the given year
js13kgames.com/submit                   -> form to submit a game. This form must be active only when the compo is running. It requires authentication
js13kgames.com/admin                    -> admin panel. It needs super user authentication
js13kgames.com/admin/login              -> admin login interface
js13kgames.com/admin/submissions        -> list of submissions for the current competition
js13kgames.com/admin/submissions/<id>   -> interface to interact with the submission (comment, vote, etc)
js13kgames.com/admin/editions           -> list of editions and options to close and delete the active edition
js13kgames.com/admin/editions/new       -> open a new edition

Tech Stack

主要指标

概览
名称与所有者js13kGames/js13kgames.com
主编程语言TypeScript
编程语言Makefile (语言数: 7)
平台
许可证
所有者活动
创建于2020-11-25 13:43:47
推送于2022-06-21 07:47:30
最后一次提交
发布数0
用户参与
星数4
关注者数2
派生数0
提交数258
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?