GithubHelp home page GithubHelp logo

00mjk / alakajam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alakajam-team/alakajam

0.0 0.0 0.0 26.7 MB

Website powering the Alakajam! game making community

Home Page: https://alakajam.com/

License: Other

JavaScript 1.07% HTML 0.84% Shell 0.73% Batchfile 0.02% TypeScript 92.97% SCSS 4.38%

alakajam's Introduction

CircleCI

Initial setup

Requirement: NodeJS 10+

  1. npm install --no-optional
  2. npm start
  3. Browse to http://localhost:8000
  4. You can login as administrator/administrator

Tips:

  • If npm fails to install sqlite3 on Windows, run npm i -g --production windows-build-tools and retry. You may need to upgrade NodeJS to a recent version.
  • For better performance, consider editing config.js to set up a PostgreSQL database.

See the wiki for additional documentation.

How do I...

...Debug the server with VSCode

Put this in .vscode/launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Alakajam!",
      "type": "node",
      "request": "launch",
      "args": ["${workspaceFolder}\\server\\index.ts"],
      "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only", "-r", "tsconfig-paths/register"],
      "sourceMaps": true,
      "cwd": "${workspaceRoot}",
      "protocol": "inspector",
      "outputCapture": "std"
    }
  ]
}

...Reset the data

  1. Stop the server and delete the data/ folder.
  2. If using PostgreSQL, also empty your database (example: drop schema public cascade; create schema public;).

...Enable picture resizing

Run npm install without the --no-optional flag to try and set up the sharp dependency. If it fails to install (especially on Windows), follow the instructions to install the sharp dependencies, then try npm install again.

...Run only one unit test

Run only partial tests by appending the required file as an argument. For instance:

npm run test:unit -- user.service

alakajam's People

Contributors

aurel300 avatar coxm avatar dependabot[bot] avatar dollarone avatar mkalam-alami avatar niciusb avatar olivier-grech avatar pixelsyntax avatar pta2002 avatar raindrinker avatar schweller avatar thrainsa avatar ttencate 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.