Skip to content

emma-r-slight/vets-who-code-app

 
 

Repository files navigation

node npm License: MIT Contributions Welcome Deployment Status

VWC Logo

Vets Who Code Web App

The Vets Who Code Web App is a Jamstack Applicaton designed for speed and to ease the learning curve of our veterans contributing to open source. By doing this we can teach our veterans with practical use cases, all the while making a professional product that is fast and serverless.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need the following properly installed on your computer.

Installing

In a terminal window run these commands.

$ git clone [email protected]:Vets-Who-Code/vwc-site.git
$ cd vets-who-code-app
$ nvm install
$ yarn
$ yarn develop

You should be able to view the website locally at https://localhost:8000/.

Running the Blog

All Content from Contentful is disabled by default. Please reach out in the #product channel in slack to request api keys.

$ git clone [email protected]:Vets-Who-Code/vwc-site.git
$ cd vets-who-code-app
$ nvm install
$ yarn develop -c

Your package.json and node modules will be updated automatically.

yarn develop has a couple of commands configured
1. yarn develop -h | --help will print out available options
2. yarn develop -c | --contentful will enable the the contentful content
3. If you have not configured a `.env` file yarn develop -b will walk you
   through the steps to configure this file

Create a new .env file in the root of your project

$ touch .env

Add necessary api keys to your new .env file.

Reference the .env.example file for available keys.

If you get an error on start up
1. Validate you ran yarn develop -c
2. Check that your keys are correct
3. If you still are facing issues reach out in the #product channel in slack

Once you have completed your edits please run the following command

$ yarn disable:blog

This will remove the modules needed to run the blog and clean up the lock file. Commit your changes as normal.

If you are seeing a ghooks error in the console when committing and pushing your code run node ./scripts/remove-git-hooks.js in the terminal.

Testing

In a terminal window run these commands.

$ cd vets-who-code-app
$ yarn test
If you get a Watchman Error/Warning
~ watchman shutdown-server
~ brew update
~ brew reinstall watchman

In a terminal window run these commands to run the jest test suite in watch mode.

$ cd vets-who-code-app
$ yarn test:watch
The following options are available when running watch mode

Jest Options

In a terminal window run these commands to view the jest coverage report.

$ cd vets-who-code-app
$ yarn test:coverage
$ yarn view:coverage

In a terminal window run these commands if you need to update a snapshot.

$ cd vets-who-code-app
$ yarn test --updateSnapshot

Contributing

Please read contributing for details on our code of conduct and the process for submitting issues and/or pull requests.

CONTRIBUTORS

License

This project is licensed under the MIT License - please see license for more details.

Roadmap

Please checkout our roadmap for details of upcoming features.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.1%
  • CSS 24.7%
  • Shell 0.2%