doc_store_crystal

Crystal test project

Doc Store

A web app built in Crystal for storing simple documents and related meta-data

Installation

Pre-requisites

Optional

  • Docker (for running Docker containers)
  • psql (for connecting to the database)

First run

  • To install dependencies, run: shards install

Usage

Tests

To run the tests: crystal spec To run and watch the tests (using guardian): guadian

Build and run the Application

To run the application: crystal run src/doc_store.cr To build the application: crystal build --release src/doc_store.cr Once built, run the application on port 5000 (default is 3000) ./doc_store -p 5000

Building and running the application in Docker

To build the application: ENV=[env] docker-compose build To run the application: ENV=[env] docker-compose up

Database

To connect to the database: psql -h localhost -U doc_store

Development

TODO: Write development instructions here

Repository

doc_store_crystal

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 4
  • over 5 years ago
  • November 15, 2018
License

MIT License

Links
Synced at

Sun, 05 May 2024 00:20:35 GMT

Languages