Skip to content

KenzieAcademy-Students/snippets-app-alexisjgray

Repository files navigation

Cody helped me https://plainenglish.io/blog/how-to-implement-a-search-bar-in-react-js https://dev.to/salehmubashar/search-bar-in-react-js-545l https://stackoverflow.com/questions/2803532/how-do-i-put-a-clear-button-inside-my-html-text-input-box-like-the-iphone-does https://stackoverflow.com/questions/36113367/how-to-make-image-buttons-in-jsx https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_and_retrieving_form_data https://react-bootstrap-v3.netlify.app/components/tooltips/ https://blog.logrocket.com/using-react-toastify-style-toast-messages/ https://stackoverflow.com/questions/51143800/how-to-set-match-password-in-react-js

Welcome to Kenzie Snippets!

You will be using this app to explore the architecture of a Full-Stack MERN Application.

Getting Started

You will need to install the following tools:

MongoDB

For this application, you will be using MongoDB Atlas (a cloud-based Mongo database) to save your data. However, to initialize the application and properly seed the database in the first place, you will need some local MongoDB tools.

Refer to Reading - MongoDB Atlas - Clusters and Connections for information on how to connect your application to MongoDB Atlas.

Follow along below for installing the local MongoDB tools.

Mac OS

Follow the guide here: Install MongoDB on MacOS

Linux

Follow the guide here: Install MongoDB on Linux

Windows

First, download the MongoDB Community Server MSI and install it. You can use all of the default options.

When that is finished installing, you can close "MongoDB Compass" if that pops up.

Then you must start the MongoDB Service:

  1. Click the start menu and type "services", Click the Services console.
  2. From the Services console, locate the MongoDB service (The list is alphabetical)
  3. Right-click on the MongoDB service and click Start.

Then download the MongoDB Database Tools

If you get stuck, you can reference the guide here: Install MongoDB on Windows

Running the application

This app is configured to run both the frontend and the backend from the root directory of this project.

First, install all of the dependencies. You should only need to do this once.

npm install

You can start the entire application by doing:

npm run dev

Note that you must be in the root folder of this repository to run both the front and backend!

Folder structure

The front and back ends are held inside of packages/client and packages/server

If you cd into those folders, you can run them individually by using npm run dev.

Adding packages

During development, you can add dependencies to the frontend or backend from the root folder. For example:

npm install -w client react-router-dom
npm install -w server mongoose

This would add a "react-router-dom" dependency to the frontend, and a "mongoose" dependency to the backend.

About

snippets-app-alexisjgray created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published