-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
67 lines (41 loc) · 1.89 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Get up and running
==================
A list of things you'll need to get the EMLO web-form up and running
These notes are for opensuse but it should be obvious how to switch them over (zypper==apt-get)
You'll need a postgres and mongo database (see later for docker instructions on installing)
docker pull mongo
docker pull postgres
# You'll need some dev files
zypper in nodejs nodejs-devel # On Ubuntu possibly: apt-get install nodejs-dev
zypper in postgresql-devel
# Install this one to global
sudo npm install [email protected] -g
#
# If IntelliJ IDE
# If you create a project and point it at your code it will actually edit and add files over the top of yours.
# In the case of it needs to add a few debug ones.
You'll need to svn revert those in svn and delete the new ones in folders /views and the route folder
# Install modules
npm install # ignore warniong about sql-generate
# Setup which config (choose in config/config.json or create a new one)
export NODE_ENV='development'
# run it
node server.js
Docker setup
============
mongoDB (EMLO)
-------------
You need a database
### build it
If not already done build in folder docker-mongo (make sure bson and json files in mongo-dump folder)
> docker build -t mongo-emlo-collect .
### instance
Now create an container instance, I'm using port my port 32768
> docker run --name emlo-edit-mongo-with-emlo -p 47017:27017 mongo-emlo-collect
### load mongo database (I couldnt get the image to do this for me as mongo wasn't running)
> docker exec -it emlo-edit-mongo-with-emlo mongorestore --db emlo-edit --drop /data/db/mongo-dump
Postgres (EMLO)
--------------
If you need to check the upload data which goes into postgres you'll need this:
### Get the image from the emloeditor repository and build
https://source.bodleian.ox.ac.uk/gitlab/emlo/emloeditor/tree/master/docker-postgres