Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Replit - Free Online IDE SaaS Website

1/30/2023

0 Comments

 
Replit - Free Online IDE SaaS Website

Replit, formerly Repl.it, is a San Francisco-based start-up and an online integrated development environment. Replit being Software as a service allows users to create online projects and write code in many supported languages.

Repls typically go to sleep after a period of inactivity (30 minutes after your website is visited). To make sure that your Repl is restarted, you can use our Always On functionality.

To add  Always On to your Repls, you will need to purchase Cycles or by subscribe to their plan.


https://docs.replit.com/

Registration for Free Plan

Free Personal Plan:


Free for all you need to get started.

FEATURES

  • Unlimited Repls
  • Free storage - 500 MB
  • Memory - 500 MB
  • vCPUs - 0.2 - 0.5 
  • Live multiplayer collaboration

LIMITATIONS

  • Your repl will sleep after about 30 minutes of inactivity, 


SOLUTION

  • T keep it awake, simply host a web server and ping it with site such as https://uptimerobot.com/

REGISTRATION

  • URL: https://replit.com/




https://docs.replit.com/

Create Your First Repl 

You can choose a Blank Repl template to start:



You can get a shell to run your own commands:


Lets start with htop software. It will automatically install it then run it.

~/test$ htop
htop: command not installed, but was located via Nix.
Would you like to run htop from Nix and add it to your replit.nix file? [Yn]: Y
Adding htop to replit.nix
success
/nix/store/zkjmh1llrq0ssamd5lfxyz43s09vafhr-htop-3.0.5
Detected change in environment, reloading shell...
~/test$ 


Here is how the system looks like:

截屏2022-12-17 14.29.06.png
Your Repl project will be running in Google Cloud and the main host will be 8 cores wtih 64G RAM. All new REPL projects will be started from one server until it reaches the limitation, then start another new host server for new projects. As metnioned in previous section, free Repl will have 0.2-0.5 CPU, 512ram and 500MB storage. Need more, pay for it. 

By the way, although Replit provides SQLite database as well, for your dynamic site, it had better to use other site's free database, such as https://freedb.tech/ , which gives you a free 50MB MySQL db with root access. 

Steps to create your first Python App


Document Website: https://docs.replit.com/

https://replit.com/

Homepage: https://replit.com/



1 Log into replit site.


2 From Home page, click +Create button to create your own Repl. Choose Python as templete.



3 Type following code into main.py code section


Code can be found from Github site:  https://github.com/51sec/myip/blob/main/main.py


from replit import web
import flask
from flask import Flask, request

app = flask.Flask(__name__) 
  
@app.route("/") 
def home_view():
  
        ip_addr1 = request.remote_addr
        ip_addr2 = request.environ['REMOTE_ADDR']
        ip_addr3 = request.environ.get('HTTP_X_FORWARDED_FOR', request.remote_addr)
        return "</BR>" +"</BR>" +"</BR>" +"<h1>Welcome to My PY website!</h1>"+"</BR>" + "<h1> Your IP address is:" + ip_addr1 +"</BR>" + "<h1> Your IP address is:" + ip_addr2 + "</BR>" + "<h1> Your IP address is:" + ip_addr3

web.run(app)



4 Click green Run button to start to run it


You will get a url from right panel Webview:

  • https://Whatsmyip.johnnynetsec.repl.co




Using UptimeRobot Site to Keep it Awake

If you Repl website is not visited in 30 minutes, it will be put into sleep mode. then you will have to go to home page again to wake it up.

Here is a simple way to keep it awake. You can create a monitor in UptimeRobot site  and use http(s) monitor to visit it every 25 minutes to keep it awake. 


Some Interesting Repl Templates

 

  • Free Broswer in Replit - https://replit.com/@York618/Nonepe



Videos

 







References

  • 如何白嫖Replit的免费云服务器建PHP+MySQL网站
  • Replit免费服务器搭建超高速节点
  • 免费Linux RDP,用来练习linux或者Python,还能做成远程桌面 - Goorm
  • https://github.com/techcode1001/replit_root



via Blogger http://blog.51sec.org/2023/01/replit-free-online-ide-saas-website.html
January 30, 2023 at 12:14PM Cloud
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org