gdgu / ecellgdgu

Website for the Entrepreneurship Cell at GD Goenka University.

Home Page:https://ecellgdgu.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-Cell GD Goenka University

This repository contains the source code of the official GD Goenka University E-Cell website. The website may be reached through ecellgdgu.org.

Telegram Chat Deploy

Frontpage Screenshot

The website have been written using PHP for the server side. It uses HTML, JavaScript and CSS (Bootstrap in some parts) for the frontend counterpart.

An SQL database is required for storing data. The website is hosted on Heroku platform which provides a Postgres database, used internally using PDO.

The following environment variables must be set in order to run the website locally or at production:

Variable Name Description
DATABASE_URL Fully qualified URL of the database connection inclusive of username, password, hostname, port number, database name. eg postgres://user:passwd@postgres.host:5432/mydatabase
EMAIL_CLOUD_FUNCTION_URL HTTP URL of a service / cloud function / micro service which can send emails by POSTing JSON with necessary email contents.

The database as aforementioned must mandatorily contain the tables cited in schema.sql.

The site uses an external micro service / cloud function to send email on behalf of the web application. The same is reachable at an URL, POSTing JSON to which sends an email. The json may be as follows.

{
    "to": "contoso@example.com",
    "subject": "Subject Line for Email",
    "message": "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illo rem repudiandae architecto accusantium ad veritatis consectetur quibusdam assumenda, qui officia soluta!"
}

Refer to emailsendingcloudfunction.py for more information.

Since the website is deployed to Heroku, one can run the website locally by supplying the environmental variables and using

heroku local web

Please refer to Heroku Dev Center articles for related information.

About

Website for the Entrepreneurship Cell at GD Goenka University.

https://ecellgdgu.org


Languages

Language:CSS 56.1%Language:JavaScript 19.6%Language:PHP 15.1%Language:HTML 7.5%Language:Python 1.2%Language:Hack 0.6%