stackoverflow clone
1.0.0
このプロジェクトは、Stackoverflowの完全なスタッククローンです。 Nodejs、React/Next、Pixel Perfect Design、NoSQLデータベース全般について詳しく学ぶために書きました。お気軽に貢献してください!
# Clone this repository
$ git clone https://github.com/salihozdemir/stackoverflow-clone
# Go into the repository
$ cd stackoverflow-clone
# Go into server
$ cd server
# Start mongodb locally
$ mongod
# Install dependencies
$ npm install
# Start the backend server
$ npm run dev
# On another terminal, go to the client folder
$ cd ../client
# Install dependencies
$ npm install
# Use the command below for Android devices
$ npm run dev
# To see the incomplete storybook components
npm run storybookサーバーをテストする前に、MongoDBが実行されていることを確認してください。
$ cd server
$ yarn testサーバー側にはテストが欠落しており、クライアント側にはまだテストがありません。
Mongodb Atlasアカウントとデータベースをセットアップする必要があります。
クラスターにどこからでも接続が許可されていることを確認してください。
Heroku新しいアプリを作成します。
アプリ設定に移動します
次の環境を追加します。
burtionpacksにnodejsを追加します
# Go into the repository
$ cd stackoverflow-clone
# Heroku Setup
$ npm install -g heroku
$ heroku login
$ heroku git:remote -a your-app-name
# push subdirectory repository with subtree
$ git subtree push --prefix server heroku master
クライアントディレクトリを選択します
Heroku API URLをSite_Name enviorementに追加します
最後に、クライアントアプリケーションを展開します
このプロジェクトは、MITライセンスの下で利用可能になります。