Giter Site home page Giter Site logo

5p7ro0t / sitewithdb Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 19 KB

A contact form that takes data and stored in MongoDB Database

Home Page: http://scholarships.tk/

JavaScript 20.06% HTML 5.19% Pug 36.01% CSS 38.74%
webdevelopment expressjs pug-template-engine hosting-aws mongodb

sitewithdb's Introduction

Form with ExpressJS and MongoDB

This is a Scholarship Form that takes data and stores in its database.

Website : http://scholarships.tk/

Prerequisite Downloads

Getting Started

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;

Retrieving Your data

  • 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

Extra

I have hosted this website on Amazon AWS and used freenom domain for free :)

References

  • WebDev Tutorials - here
  • Hosting on AWS - here
  • Link domain to AWS - here

Thank You
Regards,
Kumar spandan Pattanayak

sitewithdb's People

Contributors

5p7ro0t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

abhishekmorla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.