MongoDB, Expressjs, React, Nodejs
MERN is a fullstack implementation in MongoDB, Expressjs, React, Nodejs.
MERN stack is the idea of using Javascript/Node for fullstack web development.
$ git clone https://github.com/amazingandyyy/mern.git
https://hackearth-assignment-frontend.web.app/
LICENSE
package.json
server/
package.json
.env (to create .env)
client/
package.json
...
notice, you need client and server runs concurrently in different terminal session, in order to make them talk to each other
$ cd client // go to client folder
$ npm i // npm install packages
$ npm run start // run it locally
## Server-side usage(PORT: 8000)
```terminal
$ cd server // go to server folder
$ npm i // npm install packages
$ npm start // run it locally
Deploy Server to Heroku
$ npm i -g heroku
$ heroku login
...
$ heroku create
$ npm run heroku:add <your-super-amazing-heroku-app>
// remember to run this command in the root level, not the server level, so if you follow the documentation along, you may need to do `cd ..`
$ pwd
/Users/<your-name>/mern
$ npm run deploy:heroku
(https://hackearth-assignment-frontend.web.app/)
Client-side | Server-side |
---|---|
axios: ^0.15.3 | body-parser: ^1.15.2 |
react: ^16.2.0 | dotenv: ^2.0.0 |
react-dom: ^16.2.0 | express: ^4.14.0 |
react-router-dom: ^4.2.2 | mongoose: ^4.7.4 |
Email Me: [email protected] (welcome, say hi)