Skip to content

Kogu Eesti ühistranspordi väljumisajad ühes kohas.

License

Notifications You must be signed in to change notification settings

karlkoorna/bussiaeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bussiaeg.ee logo

Kogu Eesti ühistranspordi väljumisajad ühes kohas.

Prerequisites 📄

Name Version
Node.js 12
MySQL 8.3
NGINX 1.17
OpenSSL 1.1

MySQL

Database and user

CREATE DATABASE bussiaeg;
CREATE USER 'bussiaeg'@'localhost' IDENTIFIED WITH mysql_native_password BY 'pA$$w0rD';
GRANT ALL PRIVILEGES ON bussiaeg.* TO 'bussiaeg'@'localhost';

Server configuration

[mysqld]
local-infile = 1
secure-file-priv = ""
group_concat_max_len = 65536
innodb_buffer_pool_size = 2G
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT

NGINX

Template files for development (nginx.dev.conf) and production (nginx.pro.conf) to be adapted to installed NGINX.

Production 💦

Populate .env by example .env.example in all modules.

Run setup in production mode.

$ ./setup.sh

Start all modules in production mode.

$ ./start.sh

Development 🔥

Note: For secure development ca.crt must be added to the trusted authorities store.
Note: HTTP headers do not work if the HTTPS certificate is insecure.
Note: Deleting tmp/update will force a data update on next launch.

Direct devaeg.ee and api.devaeg.ee to the local or public IP.

Populate .env by example .env.example in all modules.

Run setup in development mode.

$ ./setup.sh dev

Start all modules in development mode.

$ ./start.sh dev