Skip to content

A recent interview exercise that I had a bit of fun with

Notifications You must be signed in to change notification settings

DanFGit/argoose

Repository files navigation

Argoose

💬 This was an interview exercise that I had a bit of fun with, went a bit crazy on the design. Runs on Firebase.

Headless ecommerce site. Ingests a list of products, allows user to browse and create a basket.

Running the project locally

In development mode, install the packages and start the dev server. You can access the app at http://localhost:3000:

yarn
yarn start

In production mode, install the packages, build the files then use a server to serve them. You can access the app at http://localhost:8080 (depends on your server of choice):

yarn
yarn build

npx http-server ./public

Or you can use Docker. You can access the app at http://localhost:8080.

docker build -t argoose .
docker run -p 8080:8080 argoose

Unit testing

To run the tests in watch mode:

yarn
yarn test

To run the tests without watch mode:

sh
yarn test:ci

Linting and formatting

We're using ESLint to detect code problems, and prettier to format code. Highly recommend you enable your editor's "format on save" option to automatically run prettier every time you save a file.

yarn lint
yarn lint --fix
yarn format

Deploying

Pushing to main will automatically deploy the app.

If you want to deploy locally, you'll need my firebase credentials, which isn't going to happen. Or you can deploy to your own firebase!

  1. Create a firebase account and create an app
  2. Globally install the firebase-tools package
  3. Run firebase login
  4. Create a .firebaserc file with your project ID:
{
  "projects": {
    "default": "app-95b1e"
  }
}

About

A recent interview exercise that I had a bit of fun with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published