Skip to content

Instantly share code, notes, and snippets.

@loriculberson
Last active November 11, 2022 00:46
Show Gist options
  • Save loriculberson/d57a8b40af4b1d22b70bd9ed78d481dc to your computer and use it in GitHub Desktop.
Save loriculberson/d57a8b40af4b1d22b70bd9ed78d481dc to your computer and use it in GitHub Desktop.

Set up backend and frontend apps

Local Setup

  1. create a project 3 directory

GitHub

  1. create org
  2. create backend repo with Readme then clone it inside of your project 3 directory.
    1. name the repo something like app-name-backend or app-name-api

Backend

  1. Clone the backend app repo
  2. create package.json npm init -y
  3. create .gitignore and add node_modules , .gitignore, and .env
  4. install core dependencies
  • apollo-server-express
  • express
  • mongoose
  • dotenv
  1. install core dev dependencies
  • nodemon
  1. create Models
  2. create seeds (only a few of basic seeds)

Frontend

  1. inside the project 3 directory, create react app npx create-react-app app-name
  2. On GitHub, create a repo in your org. You only have to set the remote connection to your repo and push it
@loriculberson
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment