https://github.com/cedadev/archive_browser
Elasticsearch and javascript based file browser
https://github.com/cedadev/archive_browser
Last synced: about 1 year ago
JSON representation
Elasticsearch and javascript based file browser
- Host: GitHub
- URL: https://github.com/cedadev/archive_browser
- Owner: cedadev
- Created: 2018-08-21T12:54:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T11:22:08.000Z (almost 2 years ago)
- Last Synced: 2024-09-22T00:05:23.844Z (over 1 year ago)
- Language: Python
- Size: 572 KB
- Stars: 1
- Watchers: 11
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Archive Browser
This is an simple django application which uses javascript AJAX requests to pull content from elaticsearch and display it on the page. The navigation is handled by this application but any download links won't work without pydap being configured alongside.
## Setting up the development environment locally
Clone the repository
`git clone https://github.com/cedadev/archive_browser.git`
Set up a python3 virtual environment
`python3 -m venv venv`
Activate the virutualenv
`. venv/bin/activate`
Install requirements
`pip install -r archive_browser/requirements.txt`
### Running the development server
Make sure you have your python 3 environment active then run:
`python manage.py runserver`
The site can then be accessed on [http://localhost:8000](http://localhost:8000)
## Setting up the development environment using vagrant
Create a directory to put project into
Enter directory and clone repository
`git clone https://github.com/cedadev/archive_browser.git`
Copy vagrant file to outer directory
`cp archive_browser/Vagrantfile .`
Initialise machine
`vagrant up`
### Running the development server
Activate environment and runserver
`vagrant ssh`
`cd vagrant_data`
`. archive_venv/bin/activate`
`python manage.py runserver 0.0.0.0:8000`
The site can then be accessed on [http://localhost:8080](http://localhost:8080)