Browse code

Remove the microservices thing, make a monolith instead

Julio Biason authored on 09/05/2019 04:45:45
Showing 6 changed files

... ...
@@ -2,3 +2,6 @@
2 2
 .idea
3 3
 
4 4
 **/target/**
5
+
6
+/target
7
+**/*.rs.bk
5 8
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+[package]
2
+name = "downfav"
3
+version = "0.1.0"
4
+authors = ["Julio Biason <julio.biason@pm.me>"]
5
+edition = "2018"
6
+
7
+[dependencies]
0 8
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-# Downfav
2
-
3
-Download your favorites/likes from Mastodon/Twitter.
4
-
5
-## Architecture
6
-
7
-This is mostly an experiment in creating microservices with Rust.
8
-
9
-* `template` is a microservice that receives a template name and some data and
10
-  renders the template back to disk. Uses:
11
-	* [Actic-web](https://github.com/actix/actix-web) for the web interface.
12
-	* [Clap](https://github.com/clap-rs/clap) for the command line options.
13
-	* [Log-Derive](https://github.com/elichai/log-derive) for logging.
14 0
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+fn main() {
2
+    println!("Hello, world!");
3
+}
0 4
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-[package]
2
-name = "templater"
3
-version = "0.1.0"
4
-authors = ["Julio Biason <julio.biason@gmail.com>"]
5
-edition = "2018"
6
-description = "Generate files based on templates."
7
-
8
-[dependencies]
9
-clap = "2.32"
10 0
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-use clap::App;
2
-use clap::Arg;
3
-use clap::crate_name;
4
-use clap::crate_version;
5
-use clap::crate_authors;
6
-use clap::crate_description;
7
-
8
-fn main() {
9
-    let params = App::new(crate_name!())
10
-        .version(crate_version!())
11
-        .author(crate_authors!())
12
-        .about(crate_description!())
13
-        .arg(Arg::with_name("bind")
14
-            .short("b")
15
-            .long("bind")
16
-            .value_name("ADDRESS")
17
-            .help("Binding address for the service")
18
-            .takes_value(true))
19
-        .arg(Arg::with_name("port")
20
-            .short("p")
21
-            .long("port")
22
-            .value_name("PORT")
23
-            .help("Port to bind")
24
-            .takes_value(true))
25
-        .get_matches();
26
-    println!("Hello, world!");
27
-}