Mejiro is a web application that simplifies the process of submitting data to the GenBank database. This tutorial will guide you through the installation process on Ubuntu Server.
Clone the Mejiro repository from Github by running the following command:
$ git clone https://github.com/dmpop/mejiro.git
Create a virtual environment for Mejiro to run in by running the following command:
$ virtualenv -p python3.6 env
Activate the virtual environment by running the following command:
$ source env/bin/activate
Install the required packages by running the following command:
$ pip install -r requirements.txt
Create a .env file in the Mejiro directory by running the following command:
$ touch .env
Open the .env file and add the following variables:
DATABASE_URL=<database-url>
SECRET_KEY=<secret-key>
EMAIL_HOST=<email-host>
EMAIL_PORT=<email-port>
EMAIL_HOST_USER=<email-username>
EMAIL_HOST_PASSWORD=<email-password>
Replace the variables with your own values.
Create a new PostgreSQL database by running the following command:
$ sudo su postgres
$ psql
postgres# CREATE USER mejiro WITH PASSWORD '<db-password>';
postgres# CREATE DATABASE mejiro_db;
postgres# GRANT ALL PRIVILEGES ON DATABASE mejiro_db TO mejiro;
postgres# \q
Replace <db-password>
with a strong password.
Run the following command to migrate the database:
$ python manage.py migrate
Create a superuser account by running the following command:
$ python manage.py createsuperuser
Follow the prompts to set up the account.
Finally, run Mejiro by executing the following command:
$ python manage.py runserver
You can now access Mejiro by navigating to http://localhost:8000
in your web browser.
That's it! You have successfully installed Mejiro on Ubuntu Server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!