Giter Club home page Giter Club logo

biorxivgo's Introduction

BioRxivGo

This was created during my time as a student at Code Chrysalis.

The Curated Preprint Server for Genomics & BioInformatics.

Technologies

tech

Setup environment

1. PostgreSQL Database

You will need postgres installed. If you haven't installed it already, download and install the PostgresApp and verify its working by running the command psql in your terminal.

Create a database for this project by running:

echo "CREATE DATABASE biorxiv | psql

Database migration & Data importing

You will need migrate installed. If you haven't installed it already, execute brew install golang-migrate in your MacOS.

Then, create a database schema using the following command.

# Update the database
migrate -path ./db/migrations -database postgres://postgres:postgres@localhost:5432/biorxiv?sslmode=disable up

# Rollback the database
migrate -path ./db/migrations -database postgres://postgres:postgres@localhost:5432/biorxiv?sslmode=disable down

2. dep: Go dependency management tool

You will need dep installed. If you haven't installed it already, execute the following commands in your MacOS.

brew install dep
brew upgrade dep

3. Starting REST API server

cd server
make run

4. Starting Front-end server

cd client
yarn serve

The list of libraries used for Back-end server

Docker Compose

Image

docker-compose

How to start each docker container

docker-compose up
./setup4docker.sh

How to build each docker container image

Example:

docker build . -t biorxivgoback:dev
docker run --rm -p 9000:9000 biorxivgoback:dev

biorxivgo's People

Contributors

imamachi-n avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.