Skip to content

Commit

Permalink
readme added with desc and todo list
Browse files Browse the repository at this point in the history
  • Loading branch information
kamm3r committed Mar 7, 2024
1 parent 2d4ff39 commit baf33bc
Show file tree
Hide file tree
Showing 19,071 changed files with 2,990,084 additions and 762 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
35 changes: 29 additions & 6 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
**/node_modules/
**/.env*
**/package-lock.json
**/*.code.workspace*
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist

# misc
.DS_Store
*.pem
package-lock.json

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.l

# local env files
.env
.env*.local

**/dist/
**/build/
# TYPESCRIPT
*.tsbuildinfo
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Virittamo portal SSO

Single sign-on (SSO) is a technology which combines several different application login screens into one.
With SSO, a user only has to enter their login credentials (email, password, etc.) one time on a single page to access all of their SaaS applications.

## Setup

```sh
// install backend and frontend
npm run install

npm run build:dev

npm run dev
```

### Tech used

- React
- express
- MongoDB
- Zustand "🐻 Bear necessities for state management in React"
- TailwindCSS "Rapidly build modern websites without ever leaving your HTML"
- shadcn/ui "Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable"
- TypeScript "Superset of JavaScript that compiles to clean JavaScript output"

### TODO

- [ ] add the ability to add and remove multiple services from a user
- [ ] fix edit service so that the form data persist after a refresh
- [ ] migrate from axios to fetch due to being pointless dependency **RECOMMENDED**
- [ ] finish typescript migration branch name @feature/esm-typescript-conversion (more up to date) **RECOMMENDED**
- [ ] add or remove auth provider if wanted old setup work your choice
- fixes flashing of if user is not login condition
- fixes spam pressing refresh page it will logout the user
- [ ] figure out best way to remove service from user
- [ ] close user dropdown when clicking a link
- [ ] make access level in user page table to be clearer
- [ ] users page links would be clickable, and open to new tab (i dont know what i meant with this anymore)
- [ ] add functionality to user services access level form
- [ ] select does not show select some value( kayttotaso, sovellus) when opening in the first time
- [ ] password reset debugging/setup: I added functioning code for this from another project of mine where it works
- there were some minor edits mostly to do with environment variables that still need to be done to make it work with this project
- you can either fix that code or remove it and use your own implementation, whichever you prefer
- [ ] user email validation when registering
- if the users are to register by themselves it should be validated with an email that they own the email, before adding the user
- this has not been implemented yet
- [ ] apply virittamoEmail check when registering
- there is already code to do this in the userRouter registration path: post('/')
- it only needs to be uncommented once the devs no longer need to use emails other than @edu.hel.fi and @hel.fi, with the production build
- [ ] apply password validation
- code exists in the registration path and just needs to be uncommented (currently disabled for easier dev account creation)
- [ ] limit the number of requests that a single user can do to the /api/authenticate path, so that no one can even try to brute force a user's password
- [ ] add the token blacklist to the database, now it is just in memory
- if you implement this remember to also remove the expired tokens from there regularly
53 changes: 0 additions & 53 deletions client/.gitignore

This file was deleted.

Empty file modified client/index.html
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions client/node_modules/.bin/acorn

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/autoprefixer

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/browserslist

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/cssesc

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/esbuild

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/eslint

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/jiti

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/js-yaml

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/loose-envify

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/nanoid

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/node-which

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/resolve

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/rimraf

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/rollup

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/semver

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/sucrase

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/sucrase-node

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/tailwind

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/tailwindcss

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/tsc

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/tsserver

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/update-browserslist-db

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

1 change: 1 addition & 0 deletions client/node_modules/.bin/vite

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

Loading

0 comments on commit baf33bc

Please sign in to comment.