Skip to content

Commit a0cc178

Browse files
Codess08
1 parent 701df33 commit a0cc178

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

README.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
<h1 align = "Center">Medical Emergency - Flutter, NodeJS</h1>
22

3-
***In India, daily so many people dying because of lack of proper information about doctor/blood/medicine, we want to gather country wise medical information in a single application, where people can find their need in their location.***
3+
**_In India, daily so many people dying because of lack of proper information about doctor/blood/medicine, we want to gather country wise medical information in a single application, where people can find their need in their location._**
44

55
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
66
[![forthebadge](https://forthebadge.com/images/badges/for-you.svg)](https://forthebadge.com)
77
[![forthebadge](https://forthebadge.com/images/badges/built-by-developers.svg)](https://forthebadge.com)
88
[![forthebadge](https://forthebadge.com/images/badges/open-source.svg)](https://forthebadge.com)
99

10-
11-
12-
1310
## Autumn of Open Source AOS 2020
11+
1412
<p align="center">
1513
<a href="https://sanscript.tech/">
1614
<img src="https://avatars3.githubusercontent.com/t/4187434?s=280&v=4" alt="Logo">
1715
</a>
1816

1917
Autumn of Open Source, 2020, is an Open Source Program organized by [**Sanscript India**](https://sanscript.tech) to spread awareness and promote the culture of Open Source Projects development among beginners and youth. The program will continue for a month in which all participants will contribute at their level of expertise. There will be highly skilled and experienced **Project Leaders*** and **Mentors** who will guide participants to contribute to Open Source Projects. In the end, participants who have performed well, will be announced as **winners**, and **rewards** will be distributed, including **internship** opportunities.
2018

21-
## Overview 🎃
22-
This project is mainly ensured to build in an open source community to help the people of our country grow and develop themselves.
19+
## Overview 🎃
20+
21+
This project is mainly ensured to build in an open source community to help the people of our country grow and develop themselves.
2322

2423
## Tech stacks used 🛴
2524

2625
**Flutter, NodeJS**
2726

28-
### This project is under AOS 2020 (Autumn open source program) under Sanscript, India .🎉🎊
27+
### This project is under AOS 2020 (Autumn open source program) under Sanscript, India .🎉🎊
2928

3029
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
3130

32-
33-
34-
## How to start ? 🎪
35-
31+
## How to start ? 🎪
3632

3733
#### If you don't have git on your machine, [install it](https://help.github.com/articles/set-up-git/).
3834

@@ -53,16 +49,12 @@ git clone "url you just copied"
5349

5450
where "url you just copied" (without the quotation marks) is the url to this repository (your fork of this project). See the previous steps to obtain the url.
5551

56-
5752
For example:
5853

5954
```
60-
git clone https://github.com/sanscript-tech/hacking-tools-scripts
55+
git clone https://github.com/sanscript-tech/medical-emergency-flutter-node
6156
```
6257

63-
64-
65-
6658
## Create a branch ⚓
6759

6860
Change to the repository directory on your computer (if you are not already there):
@@ -121,11 +113,11 @@ Now submit the pull request.
121113

122114
Soon we will be merging all your changes into the master branch of this project. You will get a notification email once the changes have been merged.
123115

124-
## How to run the server locally ?
125-
126-
To start the server be in the server folder of the repository and run the following command:
116+
## How to run the server locally ?
127117

128118
```
119+
cd server
120+
npm install
129121
npm start
130122
```
131123

@@ -134,5 +126,3 @@ The server restarts whenever a new change is saved, but to do it manually run th
134126
```
135127
RS
136128
```
137-
138-

server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cookie-parser": "~1.4.4",
1313
"debug": "~2.6.9",
1414
"express": "^4.17.1",
15+
"jsonwebtoken": "^8.5.1",
1516
"mongoose": "^5.10.10",
1617
"morgan": "~1.9.1",
1718
"validator": "^13.1.17"

server/src/server.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ const dbConnection = require("./config/database");
77
// db Connectivity
88
dbConnection();
99

10-
1110
// Initialize port
1211
const PORT = 3000;
1312

1413
// request express payload middleware
1514
app.use(express.json());
1615
app.use(express.urlencoded({ extended: true }));
1716

18-
1917
// routes
2018
app.use("/api/user", require("./routers/api/userRouter"));
2119

22-
23-
20+
app.get("/", (req, res) => {
21+
res.send("Api is running");
22+
});
2423

2524
app.listen(PORT, () => {
26-
console.log(`Server listening on ${PORT}`);
27-
});
25+
console.log(`Server listening on ${PORT}`);
26+
});

0 commit comments

Comments
 (0)