33![ Build Status] ( https://github.com/yknx4/librecov/actions/workflows/tests.yml/badge.svg )
44[ ![ Coverage Status] ( https://www.librecov.com/projects/1/badge.svg )] ( https://www.librecov.com/projects/1 )
55[ ![ codecov] ( https://codecov.io/gh/yknx4/librecov/branch/main/graph/badge.svg?token=Q9kaFXoFTn )] ( https://codecov.io/gh/yknx4/librecov )
6+ [ ![ codebeat badge] ( https://codebeat.co/badges/c1031e2a-2da1-4bd3-9654-26999b8c6478 )] ( https://codebeat.co/projects/github-com-yknx4-librecov-main )
67
78LibreCov is a self-hosted opensource test coverage history viewer.
89It is (mostly) compatible with [ coveralls] ( https://coveralls.io/ ) , so most
910coverage tools will work easily.
1011
11- ## Demo and screenshots
12-
13- A demo is available at https://www.librecov.com , you can create an account or login with
14-
15- * username: user@librecov.com
16- * password: password123
17-
18- For "security" reasons, the user is not admin.
19- NOTE: the demo is on a Heroku free dyno, so it may not always be available and might be very slow.
20-
2112### Projects list
2213
2314![ projects] ( https://cloud.githubusercontent.com/assets/1436271/21740030/45ce95d6-d4ef-11e6-8d09-fac4aa7d5f00.png )
@@ -53,13 +44,15 @@ Check [config/local.sample.exs](https://github.com/yknx4/librecov/blob/main/conf
5344If you already have a database to use, you can simply start the application using docker:
5445
5546Setup database, run migrations and seeds
47+
5648```
57- $ docker run --rm -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov mix ecto.setup
49+ docker run --rm -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov mix ecto.setup
5850```
5951
6052Execute Phoenix Server
53+
6154```
62- $ docker run -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov
55+ docker run -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov
6356```
6457
6558This will start the server on the port you set in ` local.exs ` .
@@ -71,21 +64,21 @@ If you do not have a database, you can start one with `docker` and `docker-compo
7164Once you have your ` docker-compose.yml ` and ` local.exs ` ready, you can run
7265
7366```
74- $ docker-compose run librecov mix ecto.setup
75- $ docker-compose up
67+ docker-compose run librecov mix ecto.setup
68+ docker-compose up
7669```
7770
7871### Manually
7972
8073```
81- $ git clone https://github.com/yknx4/librecov.git
82- $ cd librecov
83- $ cp /path/to/local.exs config/local.exs # local.exs must be in the `config` directory of the app
84-
85- $ npm install # (or yarn install)
86- $ mix deps.get
87- $ mix ecto.setup
88- $ mix phoenix.server
74+ git clone https://github.com/yknx4/librecov.git
75+ cd librecov
76+ cp /path/to/local.exs config/local.exs # local.exs must be in the `config` directory of the app
77+
78+ npm install # (or yarn install)
79+ mix deps.get
80+ mix ecto.setup
81+ mix phoenix.server
8982```
9083
9184This should start LibreCov at port 4000.
@@ -94,7 +87,7 @@ If you want to setup the server for production, you will need to run the above c
9487with ` MIX_ENV=prod ` and to run
9588
9689```
97- $ mix assets.compile
90+ mix assets.compile
9891```
9992
10093before starting the server.
@@ -104,16 +97,16 @@ before starting the server.
10497You should also be able to deploy to Heroku by simply git pushing this repository.
10598You will need to set the following environment variables using ` heroku config:set `
10699
107- * ` LIBRECOV_PORT `
108- * ` LIBRECOV_SCHEME `
109- * ` SECRET_KEY_BASE `
110- * ` SMTP_USER `
111- * ` SMTP_PASSWORD `
100+ - ` LIBRECOV_PORT `
101+ - ` LIBRECOV_SCHEME `
102+ - ` SECRET_KEY_BASE `
103+ - ` SMTP_USER `
104+ - ` SMTP_PASSWORD `
112105
113106You will need to run
114107
115108```
116- $ heroku run mix ecto.setup
109+ heroku run mix ecto.setup
117110```
118111
119112before you can use your application.
@@ -122,8 +115,8 @@ before you can use your application.
122115
123116In all setups, ` mix ecto.setup ` creates the following admin user
124117
125- * email: admin@example.com
126- * password: p4ssw0rd
118+ - email: admin@example.com
119+ - password: p4ssw0rd
127120
128121You should use it for your first login and the change the email and password.
129122
0 commit comments