Developer: Li Fengyu
Designer: Liu Yueming
-
Make sure you have Node.js installed in your environment.
-
Run the following commands in the project's root directory:
// Install react, mongoose, antd, and other necessary packages. npm i // Install webpack and babel to compile your JSX code. npm i -D
-
Make changes.
-
To effectuate all changes, run
npm test. -
Alternatively, to effectuate only changes associated with React.js, run
npm run build, which triggers the webpack bundling. To initiate the Express.js server, runnpm run start. See scripts in package.json for more. -
The default http localhost port is 3000. The server automatically switches to
process.env.PORTwhen deployed. -
Submit a commit, then push.
-
Ideally, any push to this Github repository results in an automatic deployment on Heroku. Alternatively, try the following.
-
Make sure you have Heroku CLI installed.
-
Run
git push heroku HEAD:masterto deploy the main branch. If asked for username and password, contact site administrator. -
Visit MongoDB Atlas service for incoming messages. Login using the credentials provided by the site administrator.