Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #61

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Cypress Tests

on: push

jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Cypress 📥
run: npm i [email protected]
- name: yarn run clientTest
uses: cypress-io/github-action@v4
with:
browser: chrome
9 changes: 9 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
5 changes: 5 additions & 0 deletions cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "[email protected]",
"body": "Fixtures are a great way to mock data for responses to routes"
}
25 changes: 25 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
20 changes: 20 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ***********************************************************
// This example support/e2e.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
6 changes: 6 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site-admin/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
site-admin/cyress/videos
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions site-admin/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const cucumber = require('cypress-cucumber-preprocessor').default
const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
on('file:preprocessor', cucumber())
},
specPattern: "**/*.feature",
},
});
4 changes: 4 additions & 0 deletions site-admin/cypress.env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"applicationURL": "http://localhost:3000",
"clientURL": "https://ktm.js.org/"
}
9 changes: 9 additions & 0 deletions site-admin/cypress/e2e/Client.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Feature: Client page
Scenario: visiting the Client page

Given I am on the "clientURL"
Then session number "session #1" should be visible
Then meetup date "September 27th" should be present
And session title "Streamline UI Components in JS Frameworks" should be present and visible
And session time "03:00pm - 04:30pm" should exsist
Then session sponser should be present
26 changes: 26 additions & 0 deletions site-admin/cypress/e2e/Client/Client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { When, Then } from "cypress-cucumber-preprocessor/steps";

Given(`I am on the {string}`, (url) => {
cy.visit(`${Cypress.env("clientURL")}`);
cy.get('.logo').should('exist').should('be.visible')
});

Then(`session number {string} should be visible`, (Session__Number) => {
cy.get('.Session__Number').should('exist').should('be.visible')
});

Then(`meetup date {string} should be present`, (Meetup__Date) => {
cy.get('.Meetup__Date').should('exist').should('be.visible')
});

Then(`session title {string} should be present and visible`, (Session__Title) => {
cy.get('.Session__Title').should('be.visible')
});

Then(`session time {string} should exsist`, (Meetup__Date) => {
cy.get('.Session__Time').should('exist');
});

Then(`session sponser should be present`, (Meetup__Date) => {
cy.get('.Panel__SponsorsAndSupporters').children().contains('Sponsors')
});
6 changes: 6 additions & 0 deletions site-admin/cypress/e2e/Episode.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Meetups page
Scenario: visiting the meetups page
When I visit "meetups" page
Then I should see "Episodes" in navigation bar
Then I click the "Add new episode"
Then I fill form with episode details
29 changes: 29 additions & 0 deletions site-admin/cypress/e2e/Episode/Episode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { When, Then } from "cypress-cucumber-preprocessor/steps";

Then(`I click the {string}`, (label) => {
cy.contains(label).should('exist').click()
});

Then(`I fill form with episode details`, () => {
cy.fixture('data.json').then((data) => {
const { venue : {date, startsAt, endsAt}, company : {name, address}, session: {title, description, time}, person } = data;
cy.get('input[name="date"]').type(date);
cy.get('input[name="startsAt"]').type(startsAt);
cy.get('input[name="endsAt"]').type(endsAt);
cy.get('#pac-s').type(name,{ force: true} );
cy.get('input[name="venue[addr_line1]"]').type(address);
cy.get('input[name="session[0][title]"]').type(title);
cy.get('input[name="session[0][time]"]').type(time);
cy.get('textarea').type(description, { force: true});
cy.get('#token-input-speakers').type(person.name, { force: true});
cy.wait(1000);
cy.get('.token-input-dropdown-item2').click();
cy.get('#token-input-sponsors').type(name, { force: true});
cy.wait(1000);
cy.get('.token-input-dropdown-item2').click();
cy.get('#token-input-supporters').type(name, { force: true});
cy.wait(1000);
cy.get('.token-input-dropdown-item2').click();
cy.get('button[type="submit"]').click();
});
});
10 changes: 10 additions & 0 deletions site-admin/cypress/e2e/Organizations.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Feature: Organizations page
Scenario: visiting the Organizations page
When I visit "companies" page
Then I should see "Organizations" in navigation bar
Then I click the "Add new company"
Then I fill form with company info
Then I fill form with company photo
Then I click the "Save"
Then I see the company info

42 changes: 42 additions & 0 deletions site-admin/cypress/e2e/Organizations/Organizations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { When, Then } from "cypress-cucumber-preprocessor/steps";

Then(`I fill form with company info`, () => {
cy.fixture('data.json').then((data) => {
const { company : {name, address, phone_number, email, website, facebook, twitter, about, github } } = data;
cy.get('input[name="name"]').type(name);
cy.get('input[name="address_1"]').type(address);
cy.get('input[name="phone_number"]').type(phone_number);
cy.get('input[name="email"]').type(email);
cy.get('textarea').type(about, { force: true});
cy.get('input[name="website"]').type(website);
cy.get('input[name="twitter"]').type(twitter);
cy.get('input[name="github"]').type(github);
cy.get('input[name="facebook"]').type(facebook);
});
});

Then(`I fill form with company photo`, () => {
// Load JPEG image file as binary data
cy.fixture('company.jpeg', 'binary').then((fileContent) => {
// Create a Blob object from the binary data
const blob = Cypress.Blob.binaryStringToBlob(fileContent);
// Create a File object from the Blob
const testFile = new File([blob], 'company.jpeg', { type: 'image/jpeg' });

// Upload the file by setting the value of the file input field
cy.get('input[type="file"]').then((input) => {
const dataTransfer = new DataTransfer();
dataTransfer.items.add(testFile);
input[0].files = dataTransfer.files;
cy.wrap(input).trigger('change', { force: true });
});
});
})

Then(`I see the company info`, () => {
cy.fixture('data.json').then((data) => {
const { company : {name, website } } = data;
cy.contains(name).should('exist')
cy.contains(website).should('exist')
})
})
9 changes: 9 additions & 0 deletions site-admin/cypress/e2e/People.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Feature: People page
Scenario: visiting the people page
When I visit "people" page
Then I should see "People" in navigation bar
Then I click the "Add new member"
Then I fill form with user info
Then I fill form with user photo
Then I click the "Save"
Then I see the user info
42 changes: 42 additions & 0 deletions site-admin/cypress/e2e/People/People.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { When, Then } from "cypress-cucumber-preprocessor/steps";

Then(`I fill form with user info`, () => {
cy.fixture('data.json').then((data) => {
const { person: {name, designation, organization, bio, facebook, twitter, github } } = data;

cy.get('input[name="name"]').type(name);
cy.get('input[name="designation"]').type(designation);
cy.get('input[name="organization"]').type(organization);
cy.get('textarea').type(bio, { force: true});
cy.get('input[name="twitter"]').type(twitter);
cy.get('input[name="github"]').type(github);
cy.get('input[name="facebook"]').type(facebook);
});
});

Then(`I fill form with user photo`, () => {
// Load JPEG image file as binary data
cy.fixture('user.jpeg', 'binary').then((fileContent) => {
// Create a Blob object from the binary data
const blob = Cypress.Blob.binaryStringToBlob(fileContent);

// Create a File object from the Blob
const testFile = new File([blob], 'user.jpeg', { type: 'image/jpeg' });

// Upload the file by setting the value of the file input field
cy.get('input[type="file"]').then((input) => {
const dataTransfer = new DataTransfer();
dataTransfer.items.add(testFile);
input[0].files = dataTransfer.files;
cy.wrap(input).trigger('change', { force: true });
});
});
})

Then(`I see the user info`, () => {
cy.fixture('data.json').then((data) => {
const { person : {name, designation, organization, bio, facebook, twitter, github } } = data;
cy.contains(name).should('exist')
cy.contains(`${designation} at ${organization}`).should('exist')
})
})
Binary file added site-admin/cypress/fixtures/company.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions site-admin/cypress/fixtures/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"person": {
"name": "Emily Brown",
"designation": "Data Scientist",
"organization": "Acme Co.",
"bio": "Creative thinker with a keen eye for detail. Enjoys collaborating with cross-functional teams to build exceptional products.",
"twitter": "https://twitter.com/example",
"facebook": "https://facebook.com/example",
"github": "https://github.com/example",
"imageURL": "fixtures/user.jpeg"
},
"company": {
"name": "ABC Inc.",
"address": "789 Oak St, City, State, Country",
"phone_number": "+71 223-4673",
"email": "[email protected]",
"about": "With years of experience, we provide high-quality services...",
"website": "https://www.abc.inc",
"logoURL": "fixtures/company.jpeg",
"twitter": "https://twitter.com/example",
"facebook": "https://facebook.com/example",
"github": "https://github.com/example"
},
"venue": {
"date": "2023-07-24",
"startsAt": "11:00",
"endsAt": "01:00"
},
"session": {
"title": "Awesome Title",
"time": "11:00",
"description": "This is an awesome session"
}
}
Binary file added site-admin/cypress/fixtures/user.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions site-admin/cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

/**
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions site-admin/cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
19 changes: 19 additions & 0 deletions site-admin/cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
13 changes: 13 additions & 0 deletions site-admin/cypress/support/step_definitions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Given, When, Then } from "cypress-cucumber-preprocessor/steps";

When(`I visit {string} page`, (pageName) => {
cy.visit(`${Cypress.env("applicationURL")}/${pageName}`);
});

Then(`I should see {string} in navigation bar`, (label) => {
cy.get('nav').contains(label);
});

Then(`I remove the details`, () => {
cy.contains("Remove").should('exist').click();
})
Binary file added site-admin/cypress/videos/Client.feature.mp4
Binary file not shown.
Binary file added site-admin/cypress/videos/Episode.feature.mp4
Binary file not shown.
Binary file not shown.
Binary file added site-admin/cypress/videos/People.feature.mp4
Binary file not shown.
7 changes: 2 additions & 5 deletions site-admin/db/companies.db
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
{"file":{"fieldname":"image","originalname":"ncit.jpg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/companies","filename":"image-1445089078040.jpg","path":"assets/admin/images/companies/image-1445089078040.jpg","size":12981},"info":{"name":"Nepal College of Information Technology","address_1":"Balkumari, Lalitpur, Nepal","phone_number":"+977-01-6211513","email":"info@ncit.edu.np","website":"http://ncit.edu.np/","about":"NCIT, a pioneer private institution providing engineering education in Nepal, is renowned for excellence in teaching & research, while maintaining close and mutually beneficial links with various sectors. The College provides excellent higher education opportunities and nurtures individual talent using an applicable knowledge base that fully supports ongoing social changes and economic advances. The institution is committed to providing quality education in various engineering disciplines keeping in mind emerging professional needs. Our highly qualified and experienced faculty is fully dedicated to their teaching. We have a state-of-the-art infrastructure to foster academic excellence. Moreover, we provide vital non-credit inputs including research & project work, supplementing the regular courses to meet the diverse learning needs of its students and improve their employability","for":"companies","twitter":"","github":"","facebook":""},"_id":"36X1cqdRe196e0jX"}
{"file":{"fieldname":"image","originalname":"techlekh-logo.png","encoding":"7bit","mimetype":"image/png","destination":"assets/admin/images/companies","filename":"image-1445086176484.png","path":"assets\\admin\\images\\companies\\image-1445086176484.png","size":135656},"info":{"name":"Tech Lekh","address_1":"","phone_number":"","email":"contact@techlekh.com","website":"http://techlekh.com","about":"“TechLekh” (Techलेख) is a technology media property, dedicated to write on several aspects that touches technology in Nepal.","for":"companies","twitter":"","github":"","facebook":"https://www.facebook.com/techlekh"},"_id":"QE6MTaUzG4VmFYaO"}
{"file":{"fieldname":"image","originalname":"fusemachines.png","encoding":"7bit","mimetype":"image/png","destination":"assets/admin/images/companies","filename":"image-1514708234112.png","path":"assets/admin/images/companies/image-1514708234112.png","size":6818},"info":{"name":"Fusemachines Nepal","address_1":"Aarya Tara Business Tower, Kamaladi, Kathmandu","phone_number":"+977-01-4168744","email":"nepal@fusemachines.com","website":"fusemachines.com.np","about":" Making Artificial Intelligence accessible to everyone through education, software & services","for":"companies","twitter":"https://twitter.com/fusemachines","github":"https://github.com/Fusemachines","facebook":"https://www.facebook.com/fusemachinesnepal"},"_id":"V5WaErR9366IsyxA"}
{"file":{"fieldname":"image","originalname":"lishn.png","encoding":"7bit","mimetype":"image/png","destination":"assets/admin/images/companies","filename":"image-1445085653011.png","path":"assets\\admin\\images\\companies\\image-1445085653011.png","size":3053},"info":{"name":"Lishn","address_1":"Jwagal, Lalitpur","phone_number":"0984-1794613","email":"https://www.facebook.com/lishnmusic","website":"http://lishn.com","about":"Lishn is music streaming platform where users get to listen to music by Nepali musicians for free and artists get paid every time their song is played. ","for":"companies","twitter":"","github":"","facebook":"https://www.facebook.com/lishnmusic"},"_id":"y1ymRSzC5ANy5MCc"}
{"file":{"fieldname":"image","originalname":"parewalabs.png","encoding":"7bit","mimetype":"image/png","destination":"assets/admin/images/companies","filename":"image-1445085435685.png","path":"assets\\admin\\images\\companies\\image-1445085435685.png","size":19903},"info":{"name":"Parewa Labs","address_1":"Opposite Bricks Cafe, Kupondole, Lalitpur","phone_number":"9808650191","email":"contact@parewalabs.com","website":"http://parewalabs.com","about":"Parewa Labs is a startup founded by Engineers from top engineering institutes of Nepal and India. We are a team of professionals building awesome software products targeting global market. We strive to use the power of technology to solve real, pressing problems one at a time in elegant cost effective ways and create opportunities for everyone who associate with us along the way.","for":"companies","twitter":"https://twitter.com/parewalabs","github":"https://github.com/parewalabs","facebook":"https://facebook.com/parewalabs"},"_id":"yauQ4oIVChp7XWr0"}
{"file":{"fieldname":"image","originalname":"company.jpeg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/companies","filename":"image-1686397806593.jpeg","path":"assets/admin/images/companies/image-1686397806593.jpeg","size":13941},"info":{"name":"ABC Inc.","address_1":"789 Oak St, City, State, Country","phone_number":"+71 223-4673","email":"info@abc.inc","website":"https://www.abc.inc","about":"With years of experience, we provide high-quality services...","for":"companies","twitter":"https://twitter.com/example","github":"https://github.com/example","facebook":"https://facebook.com/example"},"_id":"82avpquTGaeWBhrK"}
{"file":{"fieldname":"image","originalname":"company.jpeg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/companies","filename":"image-1686398334490.jpeg","path":"assets/admin/images/companies/image-1686398334490.jpeg","size":13941},"info":{"name":"ABC Inc.","address_1":"789 Oak St, City, State, Country","phone_number":"+71 223-4673","email":"info@abc.inc","website":"https://www.abc.inc","about":"With years of experience, we provide high-quality services...","for":"companies","twitter":"https://twitter.com/example","github":"https://github.com/example","facebook":"https://facebook.com/example"},"_id":"X1tSQsuX6SWdsXlI"}
8 changes: 7 additions & 1 deletion site-admin/db/meetups.db
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{"episode":"15","date":"2020-09-27","startsAt":"15:00","endsAt":"16:30","venue":{"organisation":"Online","addr_line1":"Online","addr_line2":""},"placeId":"","session":[{"title":"Streamline UI Components in JS Frameworks","time":"15:00","description":"The way be build our products have added complexity over time. There are lot of pieces we need to focus on in building an application. These pieces can act as a component which unites and builds up an entire application. In the talk we will understand what it takes to build a proper streamlined process and stay in sync with the pieces inside a team.","speakers":["R13JI8vIfLbnbLIq"]}],"sponsors":null,"supporters":null,"_id":"ZXFs4EUR6Ehey87Z"}
{"episode":"3","date":"2023-07-24","startsAt":"11:00","endsAt":"01:00","venue":{"organisation":"ABC Inc.","addr_line1":"789 Oak St, City, State, Country","addr_line2":""},"placeId":"","session":[{"title":"Awesome Title","time":"11:00","description":"This is an awesome session","speakers":["PLJtndBVRT7VPFdk"]}],"sponsors":["wkYRs0Vy7bj6iQU4"],"supporters":["wkYRs0Vy7bj6iQU4"],"_id":"DUmzcLZB7U7eTmyy"}
{"episode":"2","date":"2023-07-24","startsAt":"11:00","endsAt":"01:00","venue":{"organisation":"ABC Inc.","addr_line1":"789 Oak St, City, State, Country","addr_line2":""},"placeId":"","session":[{"title":"Awesome Title","time":"11:00","description":"This is an awesome session","speakers":["PLJtndBVRT7VPFdk"]}],"sponsors":["wkYRs0Vy7bj6iQU4"],"supporters":["wkYRs0Vy7bj6iQU4"],"_id":"tGoDqXhjmPhLWyyT"}
{"episode":"3","date":"2023-07-24","startsAt":"11:00","endsAt":"01:00","venue":{"organisation":"ABC Inc.","addr_line1":"789 Oak St, City, State, Country","addr_line2":""},"placeId":"","session":[{"title":"Awesome Title","time":"11:00","description":"This is an awesome session","speakers":["EgTluAoz7PiYT7QH"]}],"sponsors":["ULDccAc18PJ5dEgK"],"supporters":["ULDccAc18PJ5dEgK"],"_id":"Ux1sv3vgKfsmbXdN"}
{"$$deleted":true,"_id":"Ux1sv3vgKfsmbXdN"}
{"$$deleted":true,"_id":"tGoDqXhjmPhLWyyT"}
{"$$deleted":true,"_id":"DUmzcLZB7U7eTmyy"}
{"episode":"1","date":"2023-07-24","startsAt":"11:00","endsAt":"01:00","venue":{"organisation":"ABC Inc.","addr_line1":"789 Oak St, City, State, Country","addr_line2":""},"placeId":"","session":[{"title":"Awesome Title","time":"11:00","description":"This is an awesome session","speakers":["5M8uxjTIhw5oGmOh"]}],"sponsors":["82avpquTGaeWBhrK"],"supporters":["82avpquTGaeWBhrK"],"_id":"FzAhYKT9u62pRsiJ"}
6 changes: 2 additions & 4 deletions site-admin/db/people.db
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
{"file":{"fieldname":"image","originalname":"pratik-gautam.jpg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/people","filename":"image-1445086034942.jpg","path":"assets/admin/images/people/image-1445086034942.jpg","size":70561},"info":{"name":"Pratik Gautam","designation":"UI/UX Developer","organization":"Kathmandu Living Labs","bio":"Pratik Gautam is UI/UX developer at Kathmandu Living Labs, where he designs and developers interactive maps on top of Open Street Map using JavaScript.","for":"people","twitter":"","github":"","facebook":""},"_id":"1N9s0R5dkUPhgiSR"}
{"file":{"fieldname":"image","originalname":"krishna-sunuwar.jpg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/people","filename":"image-1445085983952.jpg","path":"assets/admin/images/people/image-1445085983952.jpg","size":47689},"info":{"name":"Krishna Sunuwar","designation":"CEO","organization":"Ontreat","bio":"Krishna is Founder & CEO of Ontreat. He as been working as E-commerce developer, consultant with global distributed team for past ten years. He has BScIT and MBA. He has been associated with non-profit, charitable organizations such as Lions Club International","for":"people","twitter":"","github":"","facebook":""},"_id":"I4ANdiLsD0GaWwzb"}
{"file":{"fieldname":"image","originalname":"ishan.jpg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/people","filename":"image-1600524437509.jpg","path":"assets/admin/images/people/image-1600524437509.jpg","size":9638},"info":{"name":"Ishan Manandhar","designation":"Senior UI/UX Engineer","organization":"Leapfrog Technology","bio":"","for":"people","twitter":"https://twitter.com/ishan02016","github":"","facebook":""},"_id":"R13JI8vIfLbnbLIq"}
{"file":{"fieldname":"image","originalname":"suman.png","encoding":"7bit","mimetype":"image/png","destination":"assets/admin/images/people","filename":"image-1514707761582.png","path":"assets/admin/images/people/image-1514707761582.png","size":843046},"info":{"name":"Suman Kunwar","designation":"Team Lead JS ","organization":"Fusemachines Nepal","bio":"Mentor @Coursera, Certification Community Member @NodeJS Foundation, Techincal writer @codebrust.io, Team Lead @fusemachines","for":"people","twitter":"https://twitter.com/sumn2u","github":"https://github.com/sumn2u","facebook":"https://www.facebook.com/sumn2u"},"_id":"VwWXbe5X4pA68zBJ"}
{"file":{"fieldname":"image","originalname":"user.jpeg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/people","filename":"image-1686397844364.jpeg","path":"assets/admin/images/people/image-1686397844364.jpeg","size":5907},"info":{"name":"Emily Brown","designation":"Data Scientist","organization":"Acme Co.","bio":"Creative thinker with a keen eye for detail. Enjoys collaborating with cross-functional teams to build exceptional products.","for":"people","twitter":"https://twitter.com/example","github":"https://github.com/example","facebook":"https://facebook.com/example"},"_id":"5M8uxjTIhw5oGmOh"}
{"file":{"fieldname":"image","originalname":"user.jpeg","encoding":"7bit","mimetype":"image/jpeg","destination":"assets/admin/images/people","filename":"image-1686398353903.jpeg","path":"assets/admin/images/people/image-1686398353903.jpeg","size":5907},"info":{"name":"Emily Brown","designation":"Data Scientist","organization":"Acme Co.","bio":"Creative thinker with a keen eye for detail. Enjoys collaborating with cross-functional teams to build exceptional products.","for":"people","twitter":"https://twitter.com/example","github":"https://github.com/example","facebook":"https://facebook.com/example"},"_id":"S3rlpw4l3TXPoX8y"}
107 changes: 107 additions & 0 deletions site-admin/dist/2023-07-24.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<html>
<head>
<title>KTM.JS | Kathmandu Javscript User Group</title>
<meta name="description" content="KTM JS is a community of JavaScript developers in Kathmandu. To subscribe to our events, join
the meetup group on meetup.com/KathmanduJS">

<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1.0,maximum-scale=1.0,user-scalable=yes"/>

<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="KTM.JS | Kathmandu Javscript User Group">
<meta itemprop="description" content="KTM JS is a community of JavaScript developers in Kathmandu. To subscribe to our events, join
the meetup group on meetup.com/KathmanduJS">
<meta itemprop="image" content="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/logo.png">

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="http://developers-nepal.github.io/ktmjs">
<meta name="twitter:title" content="KTM.JS | Kathmandu Javscript User Group">
<meta name="twitter:description" content="KTM JS is a community of JavaScript developers in Kathmandu. To subscribe to our events, join
the meetup group on meetup.com/KathmanduJS">
<meta name="twitter:image" content="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/logo_120X120.png">

<!-- Open Graph data -->
<meta property="og:title" content="KTM JS user group. Meetups, People and Community."/>
<meta property="og:type" content="article" />
<meta property="og:url" content="http://developers-nepal.github.io/ktmjs" />
<meta property="og:image" content="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/logo.png" />
<meta property="og:description" content="KTM JS is a community of JavaScript developers in Kathmandu.We aim to share
knowledge and expertise in. Javascript and related technologies through regular meetups, workshops and discussions."/>
<meta property="og:site_name" content="Kathmandu JS" />
<meta property="fb:admins" content="443642025803350" />

<link rel="shortcut icon" href="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/favicon/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/favicon/favicon.ico" type="image/x-icon">
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700,900' rel='stylesheet' type='text/css'/>
<link rel="stylesheet" href="css/index.css" type="text/css"/>
</head>
<body>
<div class="Panel__Navigation">
<img class="logo" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/logo.png" alt="Kathmandu JS User Group Logo" />
</div>

<div class="Panel__Meetup">
<div class="Meetup">
<h1 class="Meetup__Name">Kathmandu Javascript Meetup</h1>
<p class="Meetup__Episode">/Episode 03, 2023</p>

<date class="Meetup__Date">July 24th</date>
<date class="Meetup__Time">
11<span class="Meetup__Time--thin">:00am</span>
- 01<span class="Meetup__Time--thin">:00am</span>
</date>

<h2 class="Meetup__Venue"> <a target="_blank" href="map.html?place=">ABC Inc.</a></h2>
<p class="Meetup__Address">789 Oak St, City, State, Country<br/></p>

<img class="Meetup__Ornament" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/flower.png" alt="flower"/>
</div>
</div>

<div class="Panel__Schedule">
<ol class="Sessions">
<li class="Session">
<h3 class="Session__Number">session #1</h3>
<hr class="Session__Splitter"/>

<h2 class="Session__Title">Awesome Title</h2>
<p class="Session__Time">@ 11:00am</p>

<p class="Session__description">
This is an awesome session
</p>

<ol class="Speakers Session__Speaker">
<li class="Speaker">
<img class="Speaker__ProfilePicture" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/admin/images/people/image-1686371797295.jpeg" alt="profile picture"/>
<h2 class="Speaker__Name">Emily Brown</h2>
<p class="Speaker__DesignationAndWorkplace">Data Scientist at Acme Co.</p>
</li> </ol>
</li> </ol>

<div class="Panel__SponsorsAndSupporters">
<h2 class="SponsorsAndSupporters__Heading">Sponsors</h2>
<ol class="Sponsors">
<li class="Sponsor"><img class="Sponsor__Logo" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/admin/images/companies/image-1686374617267.jpeg" alt="company 1" /></li> <hr class="SponsorsAndSupporters__Splitter"/>
<h2 class="SponsorsAndSupporters__Heading">Supporters</h2>
<ol class="Supporters">
<li class="Supporter"><img class="Supporter__Logo" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/admin/images/companies/image-1686374617267.jpeg" alt="company 2" /></li> </ol>
</div>

<img class="chandra" src="https://raw.githubusercontent.com/developers-nepal/ktmjs/master/site-admin/assets/site/images/chandra.png" alt="chandra logo" />
</div>
</div>
</div>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-66204216-2', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>
14,633 changes: 14,633 additions & 0 deletions site-admin/npm-shrinkwrap.json

Large diffs are not rendered by default.

8,149 changes: 8,126 additions & 23 deletions site-admin/package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions site-admin/package.json
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@
"license": "ISC",
"devDependencies": {
"body-parser": "^1.14.0",
"cypress": "^12.14.0",
"cypress-cucumber-preprocessor": "^4.3.1",
"express": "^4.13.3",
"express-handlebars": "^2.0.1",
"git-directory-deploy": "^1.2.1",
@@ -32,5 +34,9 @@
"moment": "^2.10.6",
"multer": "^1.0.6",
"nedb": "^1.2.1"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": false,
"step_definitions": "cypress/**/"
}
}
2 changes: 1 addition & 1 deletion site-admin/templates/site/index.hbs
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@
{{~/each}}
</ol>

{{#if sponsors.length > 0 }}
{{#if sponsors}}
<div class="Panel__SponsorsAndSupporters">
<h2 class="SponsorsAndSupporters__Heading">Sponsors</h2>
<ol class="Sponsors">
5,072 changes: 5,072 additions & 0 deletions site-admin/yarn.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1