Skip to content

nc-jo-watson/project-generator

Repository files navigation

Project generator

Based on this sprint: https://l2c.northcoders.com/courses/fun/callback-heaven#sectionId=projectGenerator,step=intro

I wanted to practice all the different ways to do async code. I wrote the tests with async await, and I planned to write the solution with both callbacks and promises.

This tool requires Node.js, npm and git

How to run the project generator

  1. Clone the repo

  2. Install globally

npm i -g
  1. Run the project generator
generate-project

You should see the following output: example output

This will initialise a project in the specified directory with:

  • An index.js
  • A spec folder
  • An index.test.js
  • A package.json set up with the basic dependencies and scripts
  • A README.md file
  • An eslint config file
  • A .gitignore file
  • A git repository initialised

How to run the tests

From the root directory of this repo, run:

npm test promises

In future: npm test callbacks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published