Expressjs, React, Nodejs
$ git clone https://github.com/vlokesh08/Github-Details.git
$ yarn # or npm i
LICENSE
package.json
server/
package.json
.env (to create .env, check [prepare your secret session])
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
$ yarn # or npm i // npm install packages
$ npm run dev // run it locally
// deployment for client app
$ npm run build // this will compile the react code using webpack and generate a folder called docs in the root level
$ npm run start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site
run the script at the first level:
$ cd server // go to server folder
$ npm i // npm install packages
$ npm run dev // run it locally
$ npm run build // this will build the server code to es5 js codes and generate a dist file
Client-side | Server-side |
---|---|
axios: ^0.15.3 | express: ^4.14.0 |
react: ^16.2.0 | |
react-dom: ^16.2.0 | |
react-router-dom: ^4.2.2 |
Create new Issues (preferred)
Email Me: [email protected] (welcome, say hi)