Skip to content

Commit 4c13376

Browse files
authored
Merge pull request #7 from Bibimbap-Team/6-setup-base-project
Setup base project
2 parents 77e06ca + 5b49d88 commit 4c13376

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ Cargo.lock
1212

1313
# MSVC Windows builds of rustc generate these, which store debugging information
1414
*.pdb
15+
16+
# Per Editor Configuration
17+
.idea/
18+
.vscode/

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "bibimbap-backend"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
rocket = "0.5.1"

src/main.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#[macro_use]
2+
extern crate rocket;
3+
4+
#[get("/")]
5+
fn index() -> &'static str {
6+
"Hello, world!"
7+
}
8+
9+
#[launch]
10+
fn rocket() -> _ {
11+
rocket::build().mount("/", routes![index])
12+
}

0 commit comments

Comments
 (0)