Giter Site home page Giter Site logo

ocs's Introduction

OCS

A React JS app to show CV of users with backend. Done as a part of selection to OCS IITH

Run Locally

If you are using IITH Internet, please disconnet and use your personal hotspot

  git clone https://github.com/adhitht/OCS

Backend

cd backend
npm install
npm run dev

Frontend

cd frontend
npm install
npm run start

Demo

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.

Usage/Examples

Frontend uses PORT 3000 by default.

Backend runs on port specified by environment variable or else on port 2000

API Endpoints

  • / -> Returns {"Hello":"World"}
  • users -> Only for development not used in production. It returns details of all users registered
  • login -> 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 Database
  • auth -> 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 Database
  • update -> Accepts details from user and updates data to database. Username is fetched from token and not recieved as a post request
  • cv -> Fetches Name, Email, CV Link of all users currently registered

ocs's People

Contributors

adhitht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.