Websandbox
An online frontend programming sandbox with integrated browser with live reloading built using react, react-dom, django and the webcontainer api
Install / Use
/learn @ogayanfe/WebsandboxREADME
Websandbox - Code. Experiment. Create. The Online Sandbox For Your Programming Ideas.<br/>
Build your web application completely on the web. With html, css, javascript and typescript support by default.<br/><br/>
Project Demo
- Watch a video demo on <a href="https://www.youtube.com/watch?v=mwFe1FtTL7o" target="_blank">Youtube</a>
- Go to <a href="https://websandboxx.netlify.app" target="_blank">project live demo</a>.
- Images are provided at the end of the page.<br/>
Project Features
- A code editor.
- Live reloading.
- A browser for viewing project output.
- Ability to save your project.
- Ability to view other users work.
- Login and Logout.
Tools
- Python
- Typescript
- Django and Django rest framework
- React
- Vite
- React router
- Webcontainers
- Tailwind css
- Material ui and Material ui icons
Setting up locally
- Clone the project to your local computer using git via command
git clone https://github.com/ogayanfe/birdie.git. You can simply download the zip folder and unzip if you don't have git installed. cdinto the application folder using your terminal.cdinto the backend direcory via the commandcd backend.- You can create and activate a virtual environment here.
cdinto the backend directory and run the commandpython3 install -r requirments.txtorpython install -r requirements.txton windows to install requirements.- You will lead to provide the following environment variables in your prduction environment.
SECRET_KEY- Your django secret key. COMPULSORY.DEBUG- Whether the code should run in debug mode. It's value is eitherTrueorFalse. Defaults toTrueAWS_ACCESS_KEY_ID- Your AWS access key id.AWS_SECRET_ACCESS_KEY_ID- Your AWS secret access key id.AWS_STORAGE_BUCKET_NAME- Your AWS bucket name.USE_S3- Whether the project should use aws s3 storage. It's value is eitherTrueorFalse. Default to!DEBUG
- Run the command
python3 manage.py migrateorpython manage.py migrateon windows to load the database. - Run the command
python3 manage.py runserverorpython manage.py runserveron windows to start the django development server. - Go back into the root folder of the repo and
cdinto the websandbox folder with commandcd websandbox - Run the command
npm installto install requirements - Run the command
npm run devto start the react development server. - Navigate to the url
localhost:5173on your browser
License
Licensed under <a href='https://github.com/ogayanfe/websandbox?tab=GPL-3.0-1-ov-file#GPL-3.0-1-ov-file'>GPL-3.0</a>
Image Galary
Landing Page
![]()
Dashboard
<br/>
<br/><br/>
Demos
<br/>
<br/><br/>
Sandbox Editor
<br/>
<br/><br/>
Sandbox Editor with output
<br/>
<br/><br/>
