Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7f7104c
Add reactstrap
sujairamprasathc Mar 25, 2021
bb83d94
add login page
thebinarybot Mar 25, 2021
e92b19d
Create static layout of attendance page
sujairamprasathc Mar 25, 2021
ceef7ae
Add axios to the project
sujairamprasathc Mar 25, 2021
6bd42d9
Add fetch data from API server
sujairamprasathc Mar 25, 2021
4bcfcef
Add create new course form
sujairamprasathc Mar 26, 2021
c4255fc
Add attendance update functionality
sujairamprasathc Mar 26, 2021
879e783
Add bunk and attend button functionality
sujairamprasathc Mar 26, 2021
4f73f37
Add google-sign-in
thebinarybot Mar 26, 2021
5438c56
Fix GAPI issue
sujairamprasathc Mar 26, 2021
513bd26
Modify mainpage
thebinarybot Mar 26, 2021
be78cb5
Merge develop and addLoginPage
sujairamprasathc Mar 26, 2021
b9169c0
Merge branch 'addLoginPage' of github.com:thebinarybot/bunkalog into …
sujairamprasathc Mar 26, 2021
7a349f7
Merge branch 'addLoginPage' into develop
sujairamprasathc Mar 26, 2021
12eed66
Fix warnings
sujairamprasathc Mar 26, 2021
5f468cf
Move Google sign in to NavBar
sujairamprasathc Mar 26, 2021
459fd94
Add deploy to github-pages
sujairamprasathc Mar 26, 2021
a9d329c
Exclude vim temporary files from tracking
sujairamprasathc Sep 9, 2021
5105e25
Remove hardcoded URLs and use env file instead
sujairamprasathc Sep 9, 2021
de1321a
Move login from navbar to its own page
sujairamprasathc Sep 10, 2021
d163755
Persist logged in state across refresh
sujairamprasathc Sep 10, 2021
5500eff
Add logout functionality
sujairamprasathc Sep 10, 2021
37e1117
Fix isUserLoggedIn bug and refactor code
sujairamprasathc Sep 12, 2021
a136ec5
Add session tracking to front-end
sujairamprasathc Sep 14, 2021
e3ec415
Refactor AddClassForm to prevent redirect on submit
sujairamprasathc Sep 14, 2021
44ad09e
Refactor AttendanceCard and fix state issue
sujairamprasathc Sep 14, 2021
6c729c1
Fix background color issue in release builds
sujairamprasathc Sep 16, 2021
f1ca30a
Fix CORS error by sending session_id in params
sujairamprasathc Sep 17, 2021
d71eb2e
Add logout API
sujairamprasathc Sep 17, 2021
8b9ffbc
Major refactor and add client side routing
sujairamprasathc Sep 20, 2021
e6340ee
Add eslint to the project
sujairamprasathc Sep 21, 2021
606fecb
Refactor code and fix ESLint errors
sujairamprasathc Sep 21, 2021
2489a1b
Add build instructions
sujairamprasathc Sep 22, 2021
967dad2
Change default app name and logo to bunkalog
sujairamprasathc Sep 22, 2021
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
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_PROXY_URL=http://localhost:5000
REACT_APP_BASE_PATH=/bunkalog
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"google"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand All @@ -21,3 +22,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Temporary files used by vim
*.swp
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# BunkaLog
Bunk manager application with notifications enabled.


## Build with
* ReactJS
* reactstrap
* Axios
* React Google Login
* JSCookie

#### Dev Dependencies
* gh-pages
* ESLint


## Development

1. Clone the repository and change directory
```bash
git clone <repo>
cd bunkalog
```

2. Create env file and set the URL for the development API server
(refer `.env.example`)

3. Install npm dependencies
```bash
npm install
```

4. Start the npm server
```bash
npm start
```


## Deployment

1. Change homepage in `package.json`
2. Create env file and set the URL for the production API server
(refer `.env.example`)
3. Run `npm install` if you haven't
4. Run `npm run deploy` and the project would be deployed using `gh-pages`


## Style Guide

Google Javascript Style Guide is followed.
The project uses ESLint to enforce the style.
Configuration details can be found in `.eslintrc.json` file.
Loading