Skip to content

Commit

Permalink
front-end addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshmani committed May 16, 2019
1 parent 74db798 commit 221a939
Show file tree
Hide file tree
Showing 34 changed files with 3,370 additions and 199 deletions.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ const bodyParser = require('body-parser');

const app = express();

require('dotenv').configure();
require('dotenv').config();
app.use(helmet());
app.use(cors());


app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended : false}));

app.use(express.static(__dirname+'/data/images'));

const MONGODB_URI = process.env.MONGODB_URI;
mongoose.connect(MONGODB_URI,(err,res) => {
Expand All @@ -23,6 +24,8 @@ mongoose.connect(MONGODB_URI,(err,res) => {
console.log(`mongodb is connected to ${MONGODB_URI}`)
});

app.use('/',require('./routes/users'));

const PORT = process.env.PORT;

app.listen(PORT,() => {
Expand Down
196 changes: 158 additions & 38 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"antd": "^3.17.0",
"antd": "^3.18.1",
"lodash": "^4.17.11",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.0"
"react-redux": "^7.0.3",
"react-router-dom": "^5.0.0",
"react-scripts": "3.0.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Loading

0 comments on commit 221a939

Please sign in to comment.