- axios
- react-router-dom (BrowserRouter)
- redux
- react-redux
- node-sass
- react-icons/fa
- http-proxy-middleware
- redux-promise-middleware
- home => / => Login.js
- profile => /profile => Profile.js
- killMap => /kill_map => KillMap.js
- src/
- components
- profile
- Profile.js
- Profile.css / .scss
- killMap
- KillMap.js
- KillMap.css / .scss
- Home
- Login.js
- Login.css / .scss
- profile
- App.js
- index.js
- reset.css
- setupProxy.js
- redux
- store.js
- reducer.js
- components
- express
- massive
- dotenv
- express-session
- bcrypt
- server/
- index.js
- middlewares
- middleware.js
- controller
- killCountController.js
auth
- login: => /api/login
- register: => /api/register
- logout: => /api/logout
- userSession: => /api/user_session
kill Count Endpoints
- getAllUser: => /api/users
- killUser: => /api/killUser
- updateDistance: => /api/distance
- deleteUser: => /api/obliterate
- users
create table users(
user_id serial primary key,
username varchar(32) not null,
password text not null,
email text not null
);
- user profile
create table profile(
profile_id serial primary key,
picture text default 'https://res.cloudinary.com/saturnslist/image/upload/q_auto/v1561159141/kcopfm6ygbyzgdu2mzxb.jpg',
alive boolean default true,
distance float,
user_id integer references users(user_id)
);