Skip to content

Rust simple TypeScript backend template creator

Notifications You must be signed in to change notification settings

denver-code/rtsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTSC - Rust TypeScript Creator

Instead of:

$ mkdir super_backend
$ cd super_backend
$ npm init -y --location=project
$ npm install express dotenv --location=project
$ npm install typescript --location=global
$ npx tsc init
$ mkdir src
$ touch ./src/index.ts

You can use:

rtsc super_backend

Pretty simple, right?
Despite the fact that I originally wrote this in bash, I decided to write something similar in Rast, since I am learning it. image-demo

How to install binary app #1

Download executable file from releases page, put this file somewhere in your pc and add path to that folder in your system Path var and restart shell.
Then you can use rtsc command in cmd.

How to install from source code #2

[!NOTE] Before you need make sure you have installed rust on your pc.

git clone https://github.com/denver-code/rtsc
cd rtcs
cargo build --release

Then do steps from "How to install from source code #2" section with your ./target/release/rstc.exe

How to install rust

curl https://sh.rustup.rs -sSf | sh