Geek Sessions website
This repos is used to hold the geek sessions website
Building and running on localhost
First install dependencies:
npm install
To create a production build:
npm run build
To run in development
Install Now CLI
npm install -g now
To test with your own google calendar, you need to follow these steps:
- Register a project on https://code.google.com/apis/console
- Generate a Simple API Access key
- Ensure Calendar API is activated under services.
- Your test calendar must be public (on calendar settings)
On a .env file, add the following keys from Google Calendar API
GOOGLE_CALENDAR_ID=<id_of_your_calendar_available_on_calendar_settings>
GOOGLE_CALENDAR_API_KEY=<simple_key_generated_on_google_projects_console>
API_HOST=<the_address_where_the_api_is_running_by_default_http://localhost:3000>
Next, run now in development mode
now dev
Open a browser on localhost:3000
Serverless functions will be available e.g. localhost:3000/api/<yourserverlessfunctionname>