Skip to content

conclurer/midnightboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

DevPhilBSimon-Deuringsd25Sebastian LehmannMistereoSC
Apr 29, 2020
86f2905 · Apr 29, 2020

History

55 Commits
Mar 26, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Dec 13, 2019
Apr 29, 2020
Oct 17, 2019
Dec 15, 2019
Apr 29, 2020
Oct 11, 2019
Apr 29, 2020
Jan 6, 2020
Feb 26, 2020
Apr 29, 2020

Repository files navigation

midnightboard

University project for the winter semester 2019/2020 to create a digital notice board as web application.

Please also see: contributing and conventions


Docker Architecture

Docker Architecture

Images for application & database, can be used with the following commands:

$ docker pull tvsjsdock/midnightboard-app:latest && docker pull tvsjsdock/midnightboard-db:latest
$ docker-compose up

Demo page on heroku may come at a future release



Preparations

Open the configuration folder and change api.js if you don't start this locally (you can change socket(s) & port(s) in sails/config/env/production.js).
You need to configure local.js (mailbox provider needed) and then copy it to sails/config/ before you do the setup part!

Optional you can configure the other files or exchange the logo if you want.


Quick setup with Docker

1. Install modules

$ npm install

2. Build and start the docker images (database & application)

$ docker-compose up --build

Setup for development

Install modules & set up project

$ npm install
$ npm run setup
$ docker-compose up --no-deps --build --force-recreate db

Frontend (Vue.js)

$ cd vue && npm run serve

Backend (Sails.js)

$ npm run sails-start-dev
Restart database (imports automatically changes on db/setup.sql)
$ docker-compose stop db && docker-compose rm -f -v db && docker-compose up --no-deps --build --force-recreate db

Setup without Docker

For running a local PostgreSQL server check out datastores.js for more details.

$ npm install
$ npm run start

Database design

ERD