stackoverflow clone
1.0.0
Proyek ini adalah klon stackoverflow yang disederhanakan. Saya menulisnya untuk mempelajari lebih lanjut tentang nodeJs, React/Next, Pixel Perfect Design dan NoSQL Database secara umum. Jangan ragu untuk berkontribusi!
# 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 storybookPastikan MongoDB berjalan sebelum menguji server.
$ cd server
$ yarn testAda tes yang hilang di sisi server dan belum ada tes di sisi klien.
Anda perlu mengatur akun dan database MongoDB ATLAS.
Pastikan cluster memiliki koneksi yang diizinkan dari mana saja.
Buat aplikasi baru Heroku.
Pergi ke Pengaturan Aplikasi
Tambahkan lingkungan berikut.
Tambahkan NodeJ ke Buildpacks
# 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
Pilih Direktori Klien
Tambahkan URL API Heroku ke Site_name Enviorement
Akhirnya menggunakan aplikasi klien
Proyek ini tersedia di bawah lisensi MIT.