We present an amazing way to share your garden gifts with your neighbors!
- MongoDB
- Express and Mongoose
- React
This project was bootstrapped with Create React App and Esau Silva's article on How to get create-react-app to work with a Node.js back-end API. Silva's article and comments may be a useful resource if you run into trouble, and it contains additional instructions on deploying a similar app to Heroku. This is optional but could be helpful when it's time to submit the project.
If you don't already have these tools, download and install them before you start working with the Apparel Store app.
- Modern web browser (may we suggest Chrome?)
- Command Line Interface (CLI)
- Node.js
- Yarn Package Manager
- A text editor or coding tool of your choice. VS Code is available for free for Mac and Windows.
First, fork this repo: https://guides.github.com/activities/forking/. Just log into your Github account, and then hit Fork (next to the Watch and Star buttons on the top right), and then clone from your own fork of the repo.
Once you have all prerequisites installed, open your CLI and navigate to the project folder.
New to command line? Navigate to the project folder using cd (which stands for change directory). If you know the full path of the directory you can type it in, or you can click and drag the folder over to your CLI window and it will automatically fill in the path to that folder.
cd /Users/mycomp/Documents/kickstart-js
Press return, and you'll be taken to that folder.
Install nodemon globally. (Debug hint: run this even if you think you have nodemon.)
npm i nodemon -g
Install server and client dependencies. Running the yarn command will install all of the dependancies listed in package.json. Since this project contains both server and client side apps, this needs to be run both in the root folder and in the client folder.
yarn
cd client
yarn
For local development, start the server and client at the same time (from the root of the project)
yarn dev
Navigate to http://localhost:3000/ and try adding an item to your To Do list
To stop serving the page to your browser, press Control+C in the command line.
kickstart-js
├── README.md
├── package.json
├── LICENSE
├── .gitignore
├── server.js
├── yarn.lock
└── client
├─── src
│ ├── App.css
│ ├── App.js
│ ├── App.test.js
| ├── ListItem.css
│ ├── ListItem.js
│ ├── index.css
│ ├── index.js
│ ├── logo.svg
│ └── serviceWorker.js
├── public
│ ├── favicon.ico
│ ├── index.html
│ └── manifest.json
├── package.json
├── yarn.lock
└── .env
Some file basics:
- App.js: app logic
- App.css: app styling
- ListItem.js: a smart React component (includes state)
- ListItem.css: the styling for this React component
Git: Forking a Repo: https://guides.github.com/activities/forking/
Basic State in React: https://reactjs.org/docs/state-and-lifecycle.html#using-state-correctly
CSS via Mozilla: https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS
CSS-Tricks: https://css-tricks.com/snippets/
Color Palette Generator: https://www.canva.com/color-palette/
Google Fonts: https://fonts.google.com/
Font Pairings: https://www.typewolf.com/google-fonts