使用 MERN 堆栈创建 DEV.to 克隆
An DEV.to clone created with MongoDB, Express, React, Node, and Socket.io
Clone the repo to your local machine using https://github.com/eknoorpreet/dev.to-clone
Install npm dependencies in both client and server subdirectories using npm install
$ cd server && npm install
$ cd client && npm installSet up a MongoDB database either locally or online via MongoDB Atlas
Create a Cloudinary account
Create a new project on Google Cloud Platform
Create a .env file in in both client and server subdirectories
Set up the following environment variables
In client/.env:
REACT_APP_BASE_URL=http://localhost:5000/api
REACT_APP_SOCKET_IO_URL=http://localhost:5000
REACT_APP_GOOGLE_CLIENT_ID=
REACT_APP_GITHUB_CLIENT_ID=
REACT_APP_FB_APP_ID=In server/.env:
…Finally, run npm start in both client and server subdirectories
$ cd server && npm start
$ cd client && npm start暂无开放 Issues,或尚未同步最近议题。