A web application to add and fetch details of students.
Live on iamabhishek.live/Record-Socket/
- Python 3.7
- Angular CLI 10
- Database : MongoDB
- Backend Hosted on Heroku
- Frontend Hosted on Github Pages
- Install Python and Angular
- Clone this repository and open terminal, change directory to backend folder in the repo.
- Run
python -m venv ./venv
to create virtual environment. - Run
venv\Scripts\activate
command to activate virtual environment. - Run
pip install -r requirements.txt
command to install dependencies. - Create a .env file in the backend folder, containing
MONGODB = <mongodb_uri>
- Run
uvicorn server:app --port 5000
(this will run backend server). - Open new terminal and change directory to repo.
- Open file
src/app/app.component.ts
and change the address in line number 59 to your localhost address. - Run
npm install
. - Run
ng serve -o
.
- Authorization: Only those who are authorized can make changes in the database
- Log Management: User can see their previous log.
- FETCH: to obtain details of a entry.
- ADD: to add a new entry to the database.
- UPDATE: to update existing information.
- DELETE: to delete entry from database.
- Autorization is not Required.
- To get email or name corresponding to Entry Number
Commands Are
FETCH EMAIL <ENTRY_NO>
FETCH NAME <ENTRY_NO>
- Autorization is Required.
- To add a new entry to the database
Commands Are
ADD <NAME> <ENTRY_NO> <EMAIL>
- Autorization is Required.
- To update existing information in the database
Commands Are
UPDATE <ENTRY_NO> NAME <NEW_NAME>
UPDATE <ENTRY_NO> EMAIL <NEW_EMAIL>
- Autorization is Required.
- To delete record from database.
Commands Are
DELETE <ENTRY_NO>