This was created during my time as a student at Code Chrysalis.
The Curated Preprint Server for Genomics & BioInformatics.
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
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
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
cd server
make run
cd client
yarn serve
docker-compose up
./setup4docker.sh
Example:
docker build . -t biorxivgoback:dev
docker run --rm -p 9000:9000 biorxivgoback:dev