Skip to content

Simple interface for executing JavaScript "Lightning Exercises"

Notifications You must be signed in to change notification settings

askingalot/bottle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bottle - A place to keep your lightning

This is a simple interface for executing individual JavaScript functions. Each function is intended to be a simple, stand-alone, "lightning exercise" completed by a student while learning the basics of programming in JavaScript.

How do I use it?

  1. Install Node.js version 14 or greater

  2. Get the repo on your computer For example

    git clone [email protected]:askingalot/bottle.git
    git remote rm origin
    git remote add origin <your remote repo>
  3. Start the server

    cd bottle
    npm start
  4. Open the application in your web browser. http://localhost:3001

  5. Open the bottle directory in your editor of choice For example, using Visual Studio Code

    code .
  6. Add the appropriate code to the functions in the JavaScript modules found in the exercises directory.

  7. To test your work after you've changed a function:

    1. Refresh the browser
    2. Select the module name from the module dropdown
    3. Select the function name
    4. Fill in any needed arguments
    5. Click the Execute button.
    6. Confirm the result in the result panel. If there is a test associated with the function bottle will execute it and indicate whether your function passed or failed the test.

Once you've completed the existing exercises feel free to add your own. Any module you add in the exercises directory will appear in the Available Modules dropdown after you refresh the browser.

About

Simple interface for executing JavaScript "Lightning Exercises"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published