Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bcrypt #23

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge Conflicts Again
  • Loading branch information
Samuel Ho authored and Samuel Ho committed Jun 21, 2019
commit 6ebe3ad58cb90031a5f84742acd6d4c2cd9c11f0
3 changes: 0 additions & 3 deletions dist/bundle.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
"cors": "^2.8.5",
"dotenv": "^8.0.0",
"express": "^4.17.1",
<<<<<<< HEAD
"passport": "^0.4.0",
"passport-google-oauth20": "^2.0.0",
=======
"moment": "^2.24.0",
>>>>>>> 23d37feae9a672a4263def1f857a8f2238386db7
"pg": "^7.11.0",
"pg-hstore": "^2.3.3",
"react": "^16.8.6",
Expand Down
6 changes: 0 additions & 6 deletions src/backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ passport.serializeUser(function(user, done) {
done(null, user);
});

<<<<<<< HEAD
passport.deserializeUser(function(obj, done) {
done(null, obj);
});
Expand Down Expand Up @@ -111,7 +110,6 @@ app.get('/habits/chat/:habitId', habitController.getMessages, (req, res) => {
// middleware for creating log
app.post('/habits/createLog/:id', habitController.createLog, (req, res) => {
res.status(200).json('habit checked');
=======
// Create a *POST* route for url /api/habits/createHabit
// send data for new habit
app.post('/api/createHabit', habitController.createHabit, (req, res) => {
Expand Down Expand Up @@ -140,7 +138,6 @@ app.post('/api/getHabits', habitController.getHabits, (req, res) => {
// });
app.post('/api/login', habitController.loginUser, (req, res) => {
return res.status(200).json(res.locals.user);
>>>>>>> 23d37feae9a672a4263def1f857a8f2238386db7
});

// global error handler
Expand All @@ -150,13 +147,10 @@ app.use(function(req, res, next) {
return next(err);
});

<<<<<<< HEAD
app.use((err, req, res, next) => {
res.status(400).json(err.message);
});

=======
>>>>>>> 23d37feae9a672a4263def1f857a8f2238386db7
// web socket for chat function
io.on('connection', socket => {
// below we listen if our pot is updated
Expand Down
5 changes: 0 additions & 5 deletions src/frontend/components/habits/HabitContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@ import { bindActionCreators } from 'redux';
import styled from 'styled-components';
import HabitDetails from './HabitDetails';
import HabitLog from './HabitLog';
<<<<<<< HEAD
import { toggleHabit, sendMessage } from './actions';
import Chat from './Chat.js';
=======
import { toggleHabit, sendMessage, getHabits } from './actions';
import Chat from './Chat';
>>>>>>> 23d37feae9a672a4263def1f857a8f2238386db7

class HabitContainer extends Component {
constructor() {
Expand Down
4 changes: 0 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ module.exports = env => {
devServer: {
contentBase: './dist',
proxy: {
<<<<<<< HEAD
'/api': 'http://localhost:3000',
// '/api/auth/google': 'https://localhost:3000/api/auth/google',
},
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
=======
'/api': 'http://localhost:8000',
>>>>>>> 23d37feae9a672a4263def1f857a8f2238386db7
},
hot: true,
},
Expand Down