Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- end0 # Replace with your branch name if different

jobs:
build_and_deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16 # Use the Node.js version that suits your project

- name: Install dependencies and build
run: |
npm ci
npm run build:gh-pages

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # The build output directory for your React app
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.development.local
.env.test.local
.env.production.local
/rough.txt

npm-debug.log*
yarn-debug.log*
Expand Down
92 changes: 34 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,46 @@
# Getting Started with Create React App
# Group-id: 29
# Title: Online Learning Platform (udemy)

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Group Members:
- Karthikeya Bethu, S20200010090
- Kukutla Gnana Sanjay, S20200010106
- Devineni Sri Sivani, S20200010057
- Samyak Bansal, S20200010186
- Mohammed Aasim, S20200010130

## Available Scripts
## Website Hosted URLs
frontend (website) - https://learnpedia-frontend.onrender.com/
backend (for reference) - https://learnpedia-backend-ci.azurewebsites.net/

In the project directory, you can run:
## Github URLs
frontend (website) - https://github.com/karthikeya-io/learnpedia0/tree/end0
backend (for reference) - https://github.com/karthikeya-io/learnpedia-backend

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
## To run the submitted zip file
- The zip contains 2 folder fortend and backend
### Frontend
To run the frontend application you need
1. nodeJs
2. npm
on your system

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`
Tor run the application you need to run the following commands
- `npm i`
- `npm start`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
the backend api runs at port 3001

### `npm run build`
### Backend
To run the Backend application you need
1. nodeJs
2. mongoDB
on your system

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
Tor run the application you need to run the following commands
- `npm i`
- `npm start`

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
the backend api runs at port 3001
92 changes: 92 additions & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"users": [
{
"role": "admin",
"fname": "Karthikeya",
"email": "karthikeya.b20@iiits.in",
"phnumber": "9999999999",
"password": "11111",
"cnfpassword": "11111",
"gender": "male",
"lname": "Bethu",
"id": 1
},
{
"role": "student",
"fname": "Sanjay",
"lname": "Gnana",
"email": "test@iiits.in",
"phnumber": "9999999999",
"password": "12345",
"cnfpassword": "12345",
"gender": "male",
"id": 2
},
{
"role": "teacher",
"fname": "testf",
"lname": "testl",
"email": "test1@iiits.in",
"phnumber": "9999999999",
"password": "11111",
"cnfpassword": "11111",
"gender": "female",
"id": 3
},
{
"role": "student",
"fname": "test",
"lname": "test",
"email": "test@iiits.in",
"phnumber": "9999999999",
"password": "11111",
"cnfpassword": "11111",
"gender": "female",
"id": 4
},
{
"role": "student",
"fname": "test3",
"lname": "Bethu",
"email": "tests@iiits.in",
"phnumber": "9999999999",
"password": "11111",
"cnfpassword": "11111",
"gender": "male",
"id": 5
}
],
"courses": [
{
"title": "Information Retrieval",
"price": "2999",
"categorydb": "engineering",
"desc": "The course helps you build search engines, so you can build your own search engine for you application. In this course you will build indexing, evaluation of IR systems",
"id": 1
},
{
"title": "Fundamentals of Full Stack",
"price": "999",
"categorydb": "engineering",
"desc": "Introduction to web development. You will learn html, css both frontend and backend javascript, nosql databases like mongodb @just 999 :)",
"id": 2
},
{
"title": "Could Computing ",
"price": "1499",
"categorydb": "engineering",
"desc": "Introduction to virtualization, containerization, bigdata and cloud computing",
"id": 3
},
{
"title": "Object Oriented programming",
"price": "3999",
"categorydb": "engineering",
"desc": "Object Oriented programming, In this course you will learn object oriented principles using java. ",
"id": 4
}
],
"profile": {
"name": "typicode"
}
}
Loading