GithubHelp home page GithubHelp logo

amit-gp / student-portal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 12.07 MB

A web based portal for students to check their marks and access resources, circulars and other notifications pertaining to college.

License: MIT License

JavaScript 19.82% HTML 74.56% CSS 5.63%
hacktoberfest

student-portal's Introduction

Student-Portal

A web based portal for students to check their marks and access resources, circulars and other notifications pertaining to college.

Created by:

NOTE: This project is under the MIT open source license. For more information, see LICENSE

Requirements

Node.js LTS (10.15.3) : https://nodejs.org/en/
MongoDB (4.0.6) : https://www.mongodb.com/

NOTE: MongoDB atlas may be used as well, however this document uses the community server edition hosted on a local machine.

Node.js setup

After following the installer instructions to install node, navigate to the project directory:

$ npm install

This will install all the node modules and dependencies according to the package.json file.

NOTE: This project does not upload local node-modules, and any deprecated packages will have to be fixed by the contribitors. For more, see issues

This project uses npm start scripts to run the project under two modes: dev and release.

MongoDB setup

After following the installer instructions to install mongo, navigate to any directory of your choice:
Create the folder /data/db and note the path.

NOTE: If on a local machine, it is reccomended to create /data/db in C:/ drive or ~/ (home) drive on windows or unix systems respectively.

NOTE: When deploying remotely on a unix server, it is compulsary to create /data/db in the '/' (root) directory. You will need admin privilages for this, or use 'fakeroot'. Contact your system administrator for the same.

Starting the mongoDB service

To start the mongodb service, the reccomended command is mongod, however systemctl can be used on unix systems that use systemd.

On unix:
$ systemctl start mongodb.service

On windows / using mongod:
$ mongod --dbpath [Your /data/db path]/data/db

This will start the mongodb servie in the background.

Starting the server

NOTE: Make sure the mongoDB server is running. See above.

To start the Node.js server, we will use npm start scripts.

Usage

 $ npm run [CONFIG] [PORT] [COOKIE-SECRET]  
 where,    
 [CONFIG] is one of: dev, and release  
 [PORT] is the port you wish to run the server on,   
 [COOKIE-SECRET] is the secret with which the cookies sent to your clients will be encrypted with.  

To run on a local machine:
$ npm run dev 8080 mysecret

Open a web browser on localhost, port of your choice, and bob's your uncle.
For any questions/queries, contact the contributors or raise an issue.

That's all folks.

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.