Skip to content

Commit 47da096

Browse files
authored
Add simple makefile and update readme (#142)
1 parent d1b0bbb commit 47da096

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: build start
2+
3+
build:
4+
pipenv install --dev
5+
6+
start:
7+
pipenv run python run.py

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ras-secure-message
2-
[![Build Status](https://travis-ci.org/ONSdigital/ras-secure-message.svg?branch=master)](https://travis-ci.org/ONSdigital/ras-secure-message)
2+
[![Build Status](https://travis-ci.org/ONSdigital/ras-secure-message.svg?branch=master)](https://travis-ci.org/ONSdigital/ras-secure-message)
33
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4e427a826650454d98ed74dade65a4ff)](https://www.codacy.com/app/ONSDigital/ras-secure-message)
44
[![codecov](https://codecov.io/gh/ONSdigital/ras-secure-message/branch/master/graph/badge.svg)](https://codecov.io/gh/ONSdigital/ras-secure-message)
55

@@ -23,6 +23,11 @@ Use pipenv to create a virtualenv and install dependencies
2323
pipenv install
2424
```
2525

26+
Alternatively you can use make
27+
```bash
28+
make build
29+
```
30+
2631
Set environmental variables. Replace $SOURCE_ROOT with the parent directory of the project.
2732

2833
```
@@ -43,6 +48,10 @@ or
4348
```bash
4449
docker-compose up
4550
```
51+
or (when postgres is set up)
52+
```bash
53+
make start
54+
```
4655

4756

4857
Test the application
@@ -99,4 +108,4 @@ The services these variables exist for are listed below with the beginnings of t
99108
| Service | Start of variables | Github
100109
|---------------------------------|-----------------------------|-----------------------------
101110
| Case service | RM_CASE_SERVICE | https://github.com/ONSdigital/rm-case-service
102-
| Party service | RAS_PARTY_SERVICE | https://github.com/ONSdigital/ras-party
111+
| Party service | RAS_PARTY_SERVICE | https://github.com/ONSdigital/ras-party

0 commit comments

Comments
 (0)