Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.history
.vscode
.env
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:8.11.3-alpine
LABEL maintainer = "Duc Bui [email protected]"
RUN mkdir /app
WORKDIR /app
COPY . /app
RUN npm install
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ You are free to implement the specification below however you see fit. Add any s

1. Clone this repo
2. Run `npm install`
3. Copy `env_example` to `.env`
4. Edit configs in `.env` base on environment
3. Run `npm start`

**Test**
1. Run `npm test`

**Run with docker**
1. Run `docker-compose up -d`

## Create React App

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
solo-chat-app:
restart: always
build: .
ports:
- "3000:3000"
volumes:
- .:/app
environment:
- NODE_ENV=development
- SOLO_CHAT_RESOLVER_STARWARS_URL=${SOLO_CHAT_RESOLVER_STARWARS_URL}
command: npm start
2 changes: 2 additions & 0 deletions env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SOLO_CHAT_RESOLVER_STARWARS_URL=https://swapi.co/api/people/?search={{query}}
SOLO_CHAT_DEFAULT_LANG=en
Loading