brentvvosselen / WebAppsOpdracht

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HEROKU LINK

http://bulkr.herokuapp.com/

GUIDE FOR LOCAL RUNNING

in server.js at the bottom, put these lines in comment if they are not

app.use(express.static(__dirname + '/dist'));
app.all('*',(req,res) => {
    const indexFile = `${__dirname}/dist/index.html`;
    res.status(200).sendFile(indexFile);
})

in all the services, the prefix MUST contain a link to the localhost server.

private _prefix: string = "http://localhost:3000";

create an app-env file which contains 2 values

export BULKR_SECRET=[insert value]
export BULKR_DB=[insert value]

TESTEN

Gebruik maken van vaste databank BULKR_DB="mongodb://user:user@ds129386.mlab.com:29386/bulkrtest"

About


Languages

Language:TypeScript 42.0%Language:JavaScript 26.1%Language:HTML 17.3%Language:CSS 14.7%