nimajneBG / pollx

Simple online polls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POLLX

Simple online polls

Requirements

  • NodeJS & npm
  • MySQL/MarinaDB Server

Installation

  1. Download Code

    $ git clone https://github.com/nimajneBG/pollx.git
  2. Prepare Database

    $ mysql -u [your username] < setup.sql
  3. Install Dependencies

    $ npm i
  4. Create .env

    Example (also in .env.example):

    PORT =                  # The port the server should run on (default: 3000)
    SECRET =                # The secret for the cookies
    DB_HOST =               # The adress of your mysql server (default: localhost)
    DB_USER =               # Your DB User (default: root)
    DB_PASSWORD =           # Your DB Password
    URL =                   # The public URL of your app
    DB_MAX_CONNECTIONS =    # Max number of connections in the poll (default: 10)
    SESSION_MAX_AGE =       # The max age of the session cookie in hours (default 3d -> 72h)
  5. Build the CSS

    $ npm run build
  6. Start it

    $ npm run start

License

MIT

Todos

See TODOS.md

Credits

About

Simple online polls

License:MIT License


Languages

Language:JavaScript 48.8%Language:EJS 30.2%Language:SCSS 20.0%Language:Shell 1.0%