Coder Social home page Coder Social logo

adarshaacharya / codetreats Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 6.0 2.47 MB

In-browser IDE for running, collaborating, saving and sharing code snippets.

Home Page: https://codetreats.herokuapp.com/

License: MIT License

HTML 0.73% CSS 3.88% TypeScript 95.15% JavaScript 0.18% Shell 0.06%
codeeditor codetreats express hacktoberfest hacktoberfest-accepted hacktoberfest2021 heroku ide monaco-editor mongodb nodejs reactjs snippets socket-io typescript

codetreats's Introduction

banner

Twitter Badge Linkedin Badge GitHub Badge Gmail Badge Website Badge

|Aadarsha's github stats


visitors

Checkout my website for more details.

codetreats's People

Contributors

adarshaacharya avatar codacy-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

codetreats's Issues

server is runing but not logging into server is runing

Describe the bug
server is runing but not logging into server is runing

To Reproduce
Steps to reproduce the behavior:

  1. Go to codeTreats
  2. write this code
const http =require("http");

const server =http.createServer((req, res)=> {
    if (req.url === "/") {
        res.write("Hello Wrold");
        res.end();
    }
    if (req.url === "/number") {
        res.write(JSON.stringify([1, 2, 3], null, 1));
        res.end();
    }
});

server.listen(3200);

console.log("listening on port 3200...");
  1. select Javascript as language

Expected behavior
Should give output listening on port 3200...

Desktop (please complete the following information):

  • OS: ubuntu 20.04 LTS
  • Browser Chrome

**Additional Context"
I was trying to create local server.

javascript input is not printed on console.

Describe the bug
javascript input is not printed on console.

To Reproduce
Steps to reproduce the behavior:

  1. Go to CodeTreats
  2. write this code
const readline = require("readline");
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

rl.question("What is your name ? ", function(name) {
    rl.question("Where do you live ? ", function(country) {
        console.log(`${name}, is a citizen of ${country}`);
        rl.close();
    });
});

rl.on("close", function() {
    console.log("\nBYE BYE !!!");
    process.exit(0);
});
  1. select the javascript as language
  2. See error

Expected behavior
It should take input and print it on console.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: ubuntu 20.04
  • Browser :chrome

Additional context
This code works perfectly in my terminal.

Redirect to Snippets Page after new Snippet Submission.

Now after saving snippet we are basically staying on same page which is creating a hell confusion wether form is being submitted or not!

So, it will be good idea to redirect to the snippets page and show newly added snippet on top.

RELOAD TO SNIPPETS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.