@@ -19,6 +19,41 @@ higher. Python dependencies are listed in `requirements.txt`. Frontend dependenc
Make sure that PostgreSQL is installed and running and that a database with user is set up. A
good guide how to do this can be found [here](https://djangogirls.gitbooks.io/django-girls-tutorial-extensions/content/optional_postgresql_installation/)(NOTE: stop before the 'Update settings' part).
#### MongoDB
The metacore part of the project runs on a [MongoDB database](https://docs.mongodb.com/manual/installation/). Make sure to install a MongoDB as well. Eg. on MacOS:
```shell
$ brew update
$ brew install mongodb
```
After installing, create the database:
```shell
$ mongo
> use <database>
switched to db <database>
```
To create a user for the database:
```shell
> db.createUser({
user: "<name>",
pwd: "<cleartext password>",
roles: [{ role: "readWrite", db: "<database>"}]
})
```
The following MongoDB configuration is set by default, you may overwrite it in your local settings:
```python
MONGO_DATABASE={
'database':'scipost',
'host':'localhost',
'user':'',
'password':'',
'port':'27017',
}
```
### Python version
Make sure you're using Python 3.5. You are strongly encouraged to use a [virtual environment](https://docs.python.org/3.5/library/venv.html).
...
...
@@ -315,24 +350,7 @@ SHELL_PLUS_POST_IMPORTS = (
)
```
## Metacore (still in development)
The Metacore app for citables, sourced - for now only - from Crossref, is available at /metacore.
In order to get it running on the server (right now implemented on staging), the following things need to be running:
The tasks that involve large requests from CR are supposed to run in the background. For this to work, Celery is required. The following commands assume that you are in the `scipost_v1` main folder, inside the right virtual environment.
Celery depends on a broker, for which we use RabbitMQ. Start it with