A responsive, mobile-friendly component for displaying contact info for specific Texas politicians. Built with React JS, styled with TailwindCSS, and powered by the Texas Tribune's politician API
Installation of this project requires Node.js and, preferably NVM.
-
To clone the project, run:
git clone https://github.com/SimmonsRitchie/tt-politician-card.git
-
If you use NVM, CD into the project directory and run:
nvm use
If you don't use NVM, ensure you are using the appropriate version of Node as specified in .nvmrc in the root of this project.
-
Cd into the project directory and run:
npm i
To run in development mode, cd into the project folder and run:
npm run dev
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
For the production build, run:
npm run build
This bundles the app for production to the build
folder. It optimizes the build for the best performance. The build is minified and the filenames include the hashes.