Skip to content

Commit 0751448

Browse files
feat(SLI-178): build small dummy app to use the slidespeak api (#1)
* feat(SLI-178): generate french revolution presentation with ruby and python * feat: interactive CLI with csv storage * feat: interactive script themes endpoint implemented * feat: update demo video on the readme * feat: interactive presentation editor * fix: update readme scripts specifications * fix: enable api key checking and warning, make .env mandatory * fix: update readme for the .env
1 parent 5ef04e6 commit 0751448

13 files changed

+1658
-2
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SLIDE_SPEAK_API_KEY=<your_key>

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

Dockerfile.python

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.9-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . /app
9+
10+
CMD ["tail", "-f", "/dev/null"]

Dockerfile.ruby

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://hub.docker.com/_/ruby
2+
FROM ruby:3.3
3+
4+
WORKDIR /usr/src/app
5+
6+
COPY Gemfile ./
7+
RUN bundle install
8+
9+
COPY . /usr/src/app
10+
11+
CMD ["tail", "-f", "/dev/null"]

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'net-http'
4+
gem 'json'
5+
gem 'httparty', '~> 0.22.0'
6+
gem 'dotenv', '~> 3.1.6'
7+
gem 'tty-prompt', '~> 0.23.1'
8+
gem 'tty-table', '~> 0.12.0'
9+
gem 'tty-spinner', '~> 0.9.3'

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY: ruby python js
2+
3+
up:
4+
docker compose up --build -d
5+
6+
down:
7+
docker compose down
8+
9+
ruby:
10+
@echo "Running Ruby script..."
11+
@docker exec -it ruby_service /usr/local/bin/ruby slidespeak_generator.rb
12+
13+
python:
14+
@echo "Running Python edit script..."
15+
@docker exec -it python_service /usr/local/bin/python slidespeak_editor.py
16+
17+
python_simple:
18+
@echo "Running Python script..."
19+
@docker exec -it python_service /usr/local/bin/python slidespeak_generator.py
20+
21+
all: ruby python python_simple
22+
@echo "All scripts executed successfully."

0 commit comments

Comments
 (0)