A React JS app to show CV of users with backend. Done as a part of selection to OCS IITH
If you are using IITH Internet, please disconnet and use your personal hotspot
git clone https://github.com/adhitht/OCS
cd backend
npm install
npm run dev
cd frontend
npm install
npm run start
Follow this link to see all users in database after starting the backend.
Username and password is also returned in the response.
Use that to login.
OrElse
Register by clicking on page.
Fill the neccessary details and login.
Frontend uses PORT 3000 by default.
Backend runs on port specified by environment variable or else on port 2000
/
-> Returns{"Hello":"World"}
users
-> Only for development not used in production. It returns details of all users registeredlogin
-> Accepts username(Roll umber) and password, checks it with MYSQL database and generates JSON Web Tokens and returns to user. Frontend stores it in localStorage to disable login screen later.register
-> Accepts Roll Number, Name, Email, password and CV Link, then store it in MYSQL Databaseauth
-> Accepts token stored in localStorage and checks whether it is valid and is not tampered.delete
-> Accepts token and deletes the user corresponding to token from Databaseupdate
-> Accepts details from user and updates data to database. Username is fetched from token and not recieved as a post requestcv
-> Fetches Name, Email, CV Link of all users currently registered