File tree Expand file tree Collapse file tree 12 files changed +209
-0
lines changed
Expand file tree Collapse file tree 12 files changed +209
-0
lines changed Original file line number Diff line number Diff line change 1+ # compiled output
2+ .vscode
3+
4+ # git
5+ .git /
6+ .gitignore
7+
8+ # docker
9+ Dockerfile
10+ docker-compose.yml
11+
12+ # github
13+ .github /
Original file line number Diff line number Diff line change 1+ # These are supported funding model platforms
2+
3+ github : ru44
4+ patreon : # Replace with a single Patreon username
5+ open_collective : # Replace with a single Open Collective username
6+ ko_fi : ru44y
7+ tidelift : # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+ community_bridge : # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+ liberapay : # Replace with a single Liberapay username
10+ issuehunt : # Replace with a single IssueHunt username
11+ otechie : # Replace with a single Otechie username
12+ lfx_crowdfunding : # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+ custom : # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Original file line number Diff line number Diff line change 1+ ---
2+ name : Bug report
3+ about : Create a report to help us improve
4+ title : ' '
5+ labels : ' '
6+ assignees : ' '
7+ ---
8+
9+ ** Describe the bug**
10+ A clear and concise description of what the bug is.
11+
12+ ** To Reproduce**
13+ Steps to reproduce the behavior:
14+
15+ 1 . Go to '...'
16+ 2 . Click on '....'
17+ 3 . Scroll down to '....'
18+ 4 . See error
19+
20+ ** Expected behavior**
21+ A clear and concise description of what you expected to happen.
22+
23+ ** Screenshots**
24+ If applicable, add screenshots to help explain your problem.
25+
26+ ** Desktop (please complete the following information):**
27+
28+ - OS: [ e.g. iOS]
29+ - Browser [ e.g. chrome, safari]
30+ - Version [ e.g. 22]
31+
32+ ** Smartphone (please complete the following information):**
33+
34+ - Device: [ e.g. iPhone6]
35+ - OS: [ e.g. iOS8.1]
36+ - Browser [ e.g. stock browser, safari]
37+ - Version [ e.g. 22]
38+
39+ ** Additional context**
40+ Add any other context about the problem here.
Original file line number Diff line number Diff line change 1+ ---
2+ name : Feature request
3+ about : Suggest an idea for this project
4+ title : ' '
5+ labels : ' '
6+ assignees : ' '
7+ ---
8+
9+ ** Is your feature request related to a problem? Please describe.**
10+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [ ...]
11+
12+ ** Describe the solution you'd like**
13+ A clear and concise description of what you want to happen.
14+
15+ ** Describe alternatives you've considered**
16+ A clear and concise description of any alternative solutions or features you've considered.
17+
18+ ** Additional context**
19+ Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change 1+ name : CI Workflow
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - " **"
8+ pull_request :
9+ branches : [main]
10+ paths :
11+ - " **"
12+
13+ env :
14+ CARGO_TERM_COLOR : always
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Build
23+ run : cargo build --verbose
24+ # - name: Run tests
25+ # run: cargo test --verbose
26+ # env:
27+ # MONGO_URI: ${{secrets.MONGO_URI}}
28+ # MONGO_DB_NAME: ${{secrets.MONGO_DB_NAME}}
29+ # API_KEY: ${{secrets.API_KEY}}
Original file line number Diff line number Diff line change 1+ # Generated by Cargo
2+ # will have compiled files and executables
3+ /target /
4+
5+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7+ Cargo.lock
8+
9+ # These are backup files generated by rustfmt
10+ ** /* .rs.bk
11+
12+
13+ # Added by cargo
14+
15+ /target
16+
17+
18+ # env & config
19+ .env
20+ config.toml
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " cliuno-rocket-template"
3+ version = " 2.0.1"
4+ edition = " 2021"
5+ authors = [" RuM <cliuno.github.io>" ]
6+ description = " A template for a Rocket web server with CLIUno"
7+ license = " APGL-3.0"
8+ repository = " https://github.com/CLIuno/CLIuno-Rocket-template"
9+
10+ [dependencies ]
11+ rocket = " 0.5.1"
12+ okapi = " 0.7.0"
13+ dotenv = " 0.15.0"
14+ futures = " 0.3"
Original file line number Diff line number Diff line change 1+ FROM rust:1.83-alpine as builder
2+
3+ WORKDIR /app
4+ COPY . .
5+ RUN cargo install --path .
6+
7+ FROM alpine:3.9 as runner
8+
9+ COPY --from=builder /usr/local/cargo/bin/cliuno-rocket-template /usr/local/bin/cliuno-rocket-template
10+ COPY --from=builder /app/.env .env
11+ COPY --from=builder /app/Rocket.toml Rocket.toml
12+
13+ EXPOSE 8080
14+
15+ CMD ["cliuno-rocket-template" ]
Original file line number Diff line number Diff line change 1+ [debug ]
2+ # You should generate your own by "openssl rand -base64 32"
3+ secret_key = " "
4+
5+ [release ]
6+ address = " 0.0.0.0"
7+ port = 8080
8+ keep_alive = 5
9+ read_timeout = 5
10+ write_timeout = 5
11+ log_level = " critical"
12+ secret_key = " "
13+ limits = { forms = 32768 }
You can’t perform that action at this time.
0 commit comments