From c3d5725244fd4188757e86a75234d0d12394a003 Mon Sep 17 00:00:00 2001 From: Sanskar Jethi Date: Sun, 5 Sep 2021 00:02:45 +0100 Subject: [PATCH] Add landing page and clean setup --- docs/landing_page/index.html | 2 +- server_test.sh | 7 ------- test.sh | 5 ----- index.html => test_python/index.html | 0 test.py => test_python/test.py | 6 ++++++ 5 files changed, 7 insertions(+), 13 deletions(-) delete mode 100755 server_test.sh delete mode 100755 test.sh rename index.html => test_python/index.html (100%) rename test.py => test_python/test.py (90%) diff --git a/docs/landing_page/index.html b/docs/landing_page/index.html index bb3847e6a..05b17cae4 100644 --- a/docs/landing_page/index.html +++ b/docs/landing_page/index.html @@ -47,7 +47,7 @@
-

An async web server with the runtime written in Rust.

+

A fast web framework!

An async web server with the runtime written in Rust.

diff --git a/server_test.sh b/server_test.sh deleted file mode 100755 index ec4ccc416..000000000 --- a/server_test.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -for i in {1..10000} -do - echo ${i} - curl localhost:5000/sleep &1>/dev/null &2>/dev/null &0>/dev/null & -done diff --git a/test.sh b/test.sh deleted file mode 100755 index bfc7d4d6f..000000000 --- a/test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cargo build --release -cp target/release/librobyn.dylib ./robyn.so -python3 test.py diff --git a/index.html b/test_python/index.html similarity index 100% rename from index.html rename to test_python/index.html diff --git a/test.py b/test_python/test.py similarity index 90% rename from test.py rename to test_python/test.py index d29d4a418..248e10912 100644 --- a/test.py +++ b/test_python/test.py @@ -1,3 +1,9 @@ +import sys +import os + +robyn_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../robyn") +sys.path.insert(0, robyn_path) + from robyn import Robyn, static_file, jsonify import asyncio