Coder Social home page Coder Social logo

rocketcp's Introduction

Hi ๐Ÿ‘‹, I'm Kaushik Rishi


Coding


ย  ย  About Me

Hello, Iโ€™m Kaushik Rishi, A budding developer and Algorithms enthusiast. I am working on Node JS and C++ and planning to Dive deep into languages like C and Java. I use linux with xfce4. I am looking forward to learn things at the level of a system trace call ๐Ÿ˜. I am waiting for a position in my life when i have Ample free time to learn C language. I donot have an eye for design [I've aldredy said that ๐Ÿ˜„ - I use xfce4].

๐Ÿ› ๏ธ Languages & Tools:

HTML CSS Javascript Node MongoDB MySQL

C++ Python Java

Git Linux

๐Ÿ“ˆ Github Stats:

๐Ÿ“ซ Link Tree:

kaushik-rishi kaushik-rishi

rocketcp's People

Contributors

aditi1403 avatar aryamanz29 avatar guptatanisha avatar innovation-platform avatar kajalsinghbaghel avatar kaushik-rishi avatar khareyash05 avatar knavdeep152002 avatar learneradarsh avatar rohan-kulkarni-25 avatar shubham-kumar-2000 avatar varshith-k avatar yash1256 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  avatar  avatar

Watchers

 avatar  avatar  avatar

rocketcp's Issues

[Basic Styling] Add a command line spinner to the log message listening to the server

Feature request:

In the server.js we are just printing Listening to post requests .. on starting the server. We expect it to print a command line spinner and the the text Server listening ...

Describe the solution you'd like:

npm ora

  • you could use this package to create the spinner

Describe alternatives you've considered:

another spinner module

  • you could also use this if the above package seems bloated

Describe how this feature will be useful to our readers:

It'll make the cli tool more interesting

Note:

  • If you want to work on an issue, you should check if it has already been assigned to anyone.

Rktcp init

Feature request:

Configuration server should run on rktcp init.

Is your feature request related to a problem? Please describe. (optional):

Configuration server doesn't start on rktcp init.

Describe the solution you'd like:

Import server in the main thread if init is passed as mode.

Describe how this feature will be useful to our readers:

It will make easy for the users to run the configuration server.

@kaushik-rishi Please assign me this under gssoc 21

Adding Discord bot to the GSSOC Rocket-CP Channel

Feature request:

Adding Discord bot to the GSSOC Rocket-CP Channel that sends a message whenever a pull request is merged in the rocketcp repo.

Describe the solution you'd like:

A Bot code.

Describe alternatives you've considered:

Making the BOT send a message for issues too.

Describe how this feature will be useful to our readers:

It can help the users know if their PR is merged.

Static Root Directory

New Feature :

Presently the root directory is static and fixed as the home directory of the user.
But generally we don't do competitive programming in our home directory.
Thus the user should be provided with a option to change the root.

We can achieve this using any option below :

.env files
user input on server start.

[Issue#34] [Feature Update : Backend] Handle the route creating the configuration file

Because:

  • We hard coded the values of programming language and template path till commit #57
  • Develop a backend and a single frontend ejs file / handlebars anything of that case to handle the user configuration
  • This should launch a server and create a configuration file based on it
  • The frontend is just a minimal HTML Form with a bunch of attributes that will be added incrementally

This issue is for the developing the backend of the application
Issue #33 has close connection with it.

Anyone having doubts can hop into the discord server and discuss with the mentors and fellow contributors

Freeport checking

Describe the bug:

Configuration server starts without prior freeport checking thus crashes when port 8080 is busy.

To Reproduce:

Steps to reproduce the behavior:

  1. Try to launch 2 instances of the configuration server.

Expected behavior:

First check for the free ports using freeports utils file then accordingly start the server.

@kaushik-rishi can you assign me this under Gssoc 21

Automatically open the home page

Feature request:

When rktcp init is executed automatically open homepage in the default browser.

Is your feature request related to a problem? Please describe. (optional):

User needs to manually open the home page.

Describe the solution you'd like:

Use the npm open module to automatically open it in default browser

@kaushik-rishi Please assign me this under gssoc 21

Body parser

Describe the bug:

Body parser absent in express configuration server

To Reproduce:

Steps to reproduce the behavior:

  1. Go to src/configuration/server.js

Expected behavior:

Body parser should be there to parse the incoming body.

@kaushik-rishi Please assign me this

Wrong default mode on for rktcp command

Describe the bug:

When we just run rktcp it should run default server to listen but the default mode mentioned is wrong.

To Reproduce:

Steps to reproduce the behavior:

  1. Run 'rktcp'
  2. See an error that the script terminates

Expected behavior:

to run the default server.

Multiple Ports for Server

Feature request:

Give option to user to choose some different port if the pre defined port is busy.

Is your feature request related to a problem? Please describe. (optional):

If I have another application running on port 10045 then our server fails.

Describe the solution you'd like:

If the default port is busy we will give him option to change the port.
And ask if he wants to change the default port to that.
If yes we can update this in defaults file.

Describe alternatives you've considered:

NA

Describe how this feature will be useful to our readers:

It will provide more flexibility for the users.

Additional context:

NA


@kaushik-rishi can you assign me this under GsSOC'21

Enhancement of the previous Issue Mentioned

@kaushik-rishi as in Issue #1 you have mentioned to make a bash script which when run from the problem(s) folder and will validates the Input and Output. As for an Idea It would be simple to follow the above but it wouldn't be better.

My Idea is - If we make our own command and it automatically compiles and check for the Input and Output, through this the bash script will not be there in each and every folder and It would be easier for the person to just type a command and check his code.
A Sample Command as : cp check

What do you say about this? If you like I would love to work on this Issue.

Multiple package.json

Describe the bug:

There are two package.json and package-lock.json in the project.

To Reproduce:

Steps to reproduce the behavior:

  1. Go to src/configuration folder

Expected behavior:

Only package.json for the project.

@kaushik-rishi can you assign me this

Incorrect devScript and main in package.json

This was the contents of package.json

  "main": "index.js",
  "scripts": {
    "devStart": "src/server.js"
  }

But this should be

  "main": "src/server.js",
  "scripts": {
    "devStart": "nodemon src/server.js"
  }

Tech Stack Update ( LOGO add )

I will like to add tech stack logo used in our project this will make our project attractive !! Will start to work on this issue as soon as i get assigned !!

Load Config

Feature request:

To load the config and store it in memory

Describe the solution you'd like:

In app.js require a file to load a config related data.

Describe how this feature will be useful to our readers:

This will help them to use their boiler plate.

@kaushik-rishi please assign me this.

Gif link broken

The demo.gif link seems to be broken.

Reference screenshot:
image

Would like to fix it as a part of GSSOC' 21.

Update contributing.md

Hi! @kaushik-rishi I would like to update contributing.md by putting steps on how to clone a repo and install on local system ,how to make a branch and use git commands to push it to origin ,How to make a PR , how to update your forkedrepo as well as local repo as the changes are made to the upstream

I would like to work on this as a part of GSSOC'21

Dynamic default config

Prerequisites:

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I checked to make sure that this issue has not already been filed.

Expected Behavior:

Load dynamic default config based on code library.

Current Behavior:

Default Config works parallelly without any dependency on code library.

Solution:

Load dynamic default config based on code library.

@kaushik-rishi please assign me this.

Maintain a global configuration for template and other details

[Issue#29] Maintain a global configuration for template and other details

Because:

  • It's not possible to hardcode the user preferences.

Description:
Have a global configuration file called .rocketcp.conf which has the data:

  • The path where the competitivecoding folder is to be mounted
  • The path of the template file that they have
  • The preferred language

Working on the branch : configfile

Express Views Not Set

Describe the bug:

Express views not setup thus crashes the server when it started from any other directory.

To Reproduce:

Steps to reproduce the behavior:

  1. Start the configuration server from your home directory using relative path
  2. Go to "http://localhost:1327/"
  3. See an error

Expected behavior:

The views should me configured correctly despite being launched from anywhere.

@kaushik-rishi please assign me this under gssoc 21.

Default Config

Feature request:

Setup a default config if the config file is absent or corrupt.

Is your feature request related to a problem? Please describe. (optional):

When the new user install it the config file is absent thus may crash other functionality.

Describe the solution you'd like:

In loadconfig file if the global.config is null then load the default config.

Describe how this feature will be useful to our readers:

They will get a seamless experience

@kaushik-rishi please assign me this.

Add Project Kanban

Why:

  • This will help us to plan project stories in a better way.
  • People will get a better idea about the status of their PRs.

ESlint

Describe the bug:

While working on the code I saw some unused functions , useless shebang on each file, etc.
Thus added eslint to avoid these silly mistakes

To Reproduce:

Steps to reproduce the behavior:

  1. Go to any file and you will know

Expected behavior:

NA

Screenshots:

NA

Additional context:

Advantages of Using ESLint

  • Toggle Any Rule. ESLint does not enforce strict standards on you.
  • Configuration Levels. ESLint has a configuration hierarchy.
  • Community Created Plugins.
  • Add Custom Rules, Parsers, and Reporters.
  • Easy Migration.
  • Great Documentation.

Note:
@kaushik-rishi I have already added a PR regarding this plz look into it.

CodeLib

Prerequisites:

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I checked to make sure that this issue has not already been filed.

Expected Behavior:

Having a codeLib.json having all lang related details such as commands, templates etc.

Current Behavior:

All these things are distributed in config, commands etc

Solution:

To have one codeLib for all.

@kaushik-rishi please assign me this under gssoc'21

[Issue#33] [Feature Update : Frontend] Add the configuration files frontend and connect it to the backend.

Because:

  • We hard coded the values of programming language and template path till commit #57
  • Develop a backend and a single frontend ejs file / handlebars anything of that case to handle the user configuration
  • This should launch a server and create a configuration file based on it
  • The frontend is just a minimal HTML Form with a bunch of attributes that will be added incrementally

This issue is for the developing the frontend of the application

Routes Arrangements

Describe the bug:

Routes should be in a different file.

To Reproduce:

Steps to reproduce the behavior:

  1. All Routes are written in file src/configuration/server.js

Expected behavior:

Routes Should be in a different file.

@kaushik-rishi Can you assign me this under gssoc 21

Completition of rcp command functionality

As the rcp command is made using Node CLI I would like to add more features to it as

  • rcp check
  • rcp parse
  • rcp config

So that the user may have better experience of using our parser through command line.
@kaushik-rishi can u Assign this Issue to me ?

Done a TODO for creating Folder for different Platforms while Parsing

@kaushik-rishi The motive of this PR is to light up on the format how you want to Parse a problem and make Folder(s).

What I have done is, if the Problem is from HackerRank, It will make a Directory name HackerRank and then make a Directory with the given Problem Name and then Parse the Input, Output and the Solution.cpp file in it.
But while working on it I encountered this piece of code and I am not getting what do u want in problemCode of the Problem.

function getProblemCode(problemName) {
    // TODO : return the problem code based on different cp platforms
    return problemName.split(' ')[0][0].trim();
}

As of now I am making a PR with the name of Solution.cpp, and Implementation of the Folder Creation, Once you clarify my doubt I will update the PR.

Embed a Makefile into each problem folder

  • While creating the problem folder and the problem files
    - Create a Makefile in the directory
    - Which generates the executable
    - Which tests the input and output of code

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.