Skip to content

GAUDUL/MeddyBaby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

459 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meddy Baby

약 먹기 싫어하는 아이들을 위한 도우미 서비스


설치 방법

1. node.js 설치

~$ node -v


2. yarn 패키지 매니저 설치

  • yarn 설치
~$ npm install --global yarn
  • yarn 버전 확인하기
~$ yarn --version


3. react 설치

  • react 설치하기
~$ npx create-react-app blog
  • macos에서 permission error 발생 시 입력하기
~$ sudo npx create-react-app blog


4. mongoDB 연결

  1. vs code에서 mongoDB 확장 설치
  2. mongoDB 연동하기
mongodb+srv://Gaudul:<password>@meddybaby.plkzmsm.mongodb.net/


5. firebase 연결

  1. firebase 콘솔에서 프로젝트 생성
  2. 프로젝트 설정에서 SDK 설정 env 파일에 저장
  3. 프로젝트 설정의 서비스 계정에서 비공개 키 다운
  4. 위 2,3 번 내용의 파일을 서버 폴더에 저장

SDK설정 .env 파일 형식

FIREBASE_API_KEY = "your Firebase Api Key"
FIREBASE_AUTH_DOMAIN = "your Firebase Auth Domain"
FIREBASE_PROJECT_ID = "your Firebase Project Id"
FIREBASE_STORAGE_BUCKET = "your Firebase Storage Bucket"
FIREBASE_MESSAGING_SENDER_ID = "your Firebase Messaging Sender Id"
FIREBASE_APP_ID = "your Firebase App Id"
FIREBASE_MEASUREMENT_ID = "your FireBase Measurement Id"

PORT='your port Number'


의존성

OS

windows / Mac / Linux

Library

Node.js / React

DB

mongoDB


실행 방법

  • repository 복제
~$ git clone https://github.com/luminous037/OSS_project.git
  • 서버 폴더에 sdk설정한 .env 파일과 serviceAccountKey.json 파일 추가

  • Module 및 library 설치

  • 루트 디렉토리, server 폴더, client폴더에서

~$ npm install
    • 위 방법으로 해결이 안될 시
~$ npm install dotenv
~$ npm install node-cron
~$ npm install firebase-admin
~$ npm install express
  • client 경로로 이동한 후
npm install firebase 
  • server 경로로 이동한 후
npm install concurrently --save-dev

-실행 명령어

cd server
yarn dev


구성원

엄지현 (팀장) 민선주 임수현
GitHub GitHub GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 75.1%
  • CSS 24.0%
  • HTML 0.9%