doc_store_crystal
Doc Store
A web app built in Crystal for storing simple documents and related meta-data
Installation
Pre-requisites
- Crystal
- Guardian - for watching tests
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
- about 6 years ago
- November 15, 2018
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 06:14:56 GMT
Languages