This is a Scholarship Form that takes data and stores in its database.
Website : http://scholarships.tk/
- Technologies Used
- NodeJS - https://nodejs.org/en/download/
- MongoDB - https://www.mongodb.com/try/download/community
At first, Run command in this repo directory to install required modules :
npm install
You are good to go now. Run index.js
file and go to http://localhost/ to visit your site.
You can always change your port in the index.js
file :
const host = 'localhost';
const port = 80;
- Open Command Prompt or Terminal and Run Command :
mongod
. Leave it running - Open another Command Prompt or terminal and Run Command :
mongo
. You will see a shell. - In the shell , Run Command :
use MyDB
(As this is our default database). - Now Run Command :
db.scholarships.find()
. You will see the data :).
You can always change names of databases and collections in the
index.js
.
MongoDB Tutorial : here
I have hosted this website on Amazon AWS and used freenom domain for free :)
Thank You
Regards,
Kumar spandan Pattanayak