GithubHelp home page GithubHelp logo

karlkoorna / bussiaeg Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 14.29 MB

Kogu Eesti ühistranspordi väljumisajad ühes kohas.

Home Page: https://bussiaeg.ee

License: GNU Affero General Public License v3.0

HTML 5.81% JavaScript 77.10% CSS 15.60% Shell 1.49%
public-transportation gtfs estonia nodejs leaflet react mobx mysql nginx

bussiaeg's Introduction

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

bussiaeg's People

Contributors

dependabot[bot] avatar karlkoorna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

orinocoz

bussiaeg's Issues

Error on ./update.sh lifecycle.

Today tried to do everything according to readme, but every time got error when did ./update.sh.
Tried on Ubuntu Desktop (18.04), Ubuntu Server (18.04) and Debian (9.8.0).
Here`s error log from npm.

1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]  
2 info using [email protected]  
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing
7 info lifecycle [email protected]~build: [email protected]
8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~build: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/root/bussiaeg/web/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle [email protected]~build: CWD: /root/bussiaeg/web
11 silly lifecycle [email protected]~build: Args: [ '-c', 'react-scripts build' ]
12 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
13 info lifecycle [email protected]~build: Failed to exec build script
14 verbose stack Error: [email protected] build: `react-scripts build`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at EventEmitter.emit (events.js:189:13)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at ChildProcess.emit (events.js:189:13)
14 verbose stack     at maybeClose (internal/child_process.js:970:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
15 verbose pkgid [email protected]
16 verbose cwd /root/bussiaeg/web
17 verbose Linux 4.15.0-45-generic
18 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
19 verbose node v10.15.1
20 verbose npm  v4.6.1
21 error code ELIFECYCLE
22 error errno 1
23 error [email protected] build: `react-scripts build`
23 error Exit status 1
24 error Failed at the [email protected] build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]```

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.