Website for IDEA Hacks, UCLA's annual hardware-focused hackathon
node --version
git clone https://github.com/ideahacks/ideahacks.la.git
cd ideahacks.la
npm ci
to install the project’s dependencies.npm run dev
to start the server. Changes you make will automaticallylocalhost:3000
to view the site.npm run test
to check formatting and run ESLint, which will catch commonMake sure you have a development.json file within the folder ideahacks/config
— it contains private configuration variables that can’t be pushed onto GitHub,
so you’ll have to create it in order to run the project locally. It looks like:
{
"dbURI": "INSERT_URI_HERE",
"sessionSecret": "INSERT_SECRET_HERE",
"host": "localhost:3000",
"SENDGRID_API_KEY": "INSERT_API_KEY_HERE",
"GOOGLE_CLIENT_ID": "INSERT_ID_HERE",
"GOOGLE_CLIENT_SECRET": "INSERT_SECRET_HERE"
}
This project connects to a remote database. Connection to this remote database
requires WIFI internet connection (as opposed to WEB).
UCLA_WIFI will work
UCLA_WEB will not work
If you see error messages in your console about failure to connect to the
database, this is likely the issue. It might also be because you don’t have
necessary permissions.
Currently this website is hosted on Heroku, a cloud hosting service. Heroku is
configured to automatically deploy this repo on its development and
production branches.
production: ideahacks.la
development: ideahacks-test.herokuapp.com