Skip to content

Commit

Permalink
Added readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
upendradhamala committed Apr 30, 2021
1 parent 22ef4e6 commit 2ff0753
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 76 deletions.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# School Management System

This is a MERN stack website which can be used for managing the school. It has almost all features and some few are in development phase.

## Usage

Clone the repo

```bash
git clone [https://github.com/upendradhamala/School-Management-System.git] (https://github.com/upendradhamala/School-Management-System.git)
```

### Getting Started

Go to the root folder and install the node_modules by using the command-

```bash
npm install
```

Go to the frontend folder by command

````bash
cd frontend```
and then do
```bash
npm install
````

### `Env Variables`

Create a .env file in the root and add the following

```bash
NODE_ENV=development
PORT=5000
MONGO_URI="Your mongo uri"
JWT_SECRET="Anything you like"
CLOUD_NAME="your cloudinary cloud name"
API_KEY="your cloudinary api key"
API_SECRET="your cloudinary secret key"
API_Environment_variable=CLOUDINARY_URL="your cloudinary environment variable"
CLOUDINARY_URL ="your cloudinary url"
CLOUDINARY_UPLOAD_PRESET = "your cloudinary preset "
```

### `Running`
``bash
Go to the root folder
npm run dev

```
70 changes: 0 additions & 70 deletions frontend/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/logo.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand Down
Binary file added frontend/public/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions frontend/src/components/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
padding:4px;
padding-bottom: 0px;
bottom:0px;
background: rgb(25, 0, 255);
color:white;
/* position: absolute; */
}
.emoji{
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const Main = () => {
</div>
)}
</div>
{/* <Footer /> */}

<Footer />
</main>
)
}
Expand Down
11 changes: 7 additions & 4 deletions frontend/src/screens/ParticularStudentAdmitCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ const ParticularStudentAdmitCard = () => {
</div>
)}
</div>
<ReactToPrint
trigger={() => <button className='printcmd'>Print this out!</button>}
content={() => componentRef.current}
/>

{student && (
<ReactToPrint
trigger={() => <button className='printcmd'>Print this out!</button>}
content={() => componentRef.current}
/>
)}
</div>
)
}
Expand Down

0 comments on commit 2ff0753

Please sign in to comment.