Skip to content

Instantly share code, notes, and snippets.

View anikethsaha's full-sized avatar
🤞
Build | Passing

Anix anikethsaha

🤞
Build | Passing
View GitHub Profile
@anikethsaha
anikethsaha / config.js
Created June 22, 2018 12:37
Server and packages setup for nodeJS+expressJS server || express.js boilerplate MVC covered with possible most security steps
const bcrypt = require('bcrypt');
module.exports = {
port : 5000,
sessionSecretKey : bcrypt.hashSync("SECRET_KEY", 2)
}
@anikethsaha
anikethsaha / App.js
Last active May 28, 2018 14:16
To create pre-loading of a component in ReactJS using reactJS lifecycle
import React from "react"
import LoadedDiv from './Loaded.js'
import PreLoadDiv from './preload-content.js'
export default class App extends React.Component{
constructor(props){
super(props);
this.state ={ loading : false};
}
componentWillMount(){
@anikethsaha
anikethsaha / webpack.config.js
Created May 24, 2018 16:23
this is simple configuration for the serverside and browserside configuration of the webpack to write es6 code .
// project structure
/*
├───node_modules
├───public
│ ├───css
│ │ normalize.css
│ │ skeleton.css
│ │ style.css
│ │