jam-cloud/jam-ui
Nuwan ec7a79c8bb forgot password feature 2024-11-19 01:24:36 +05:30
..
cypress forgot password feature 2024-11-19 01:24:36 +05:30
public header notifications 2024-09-03 00:11:36 +05:30
src forgot password feature 2024-11-19 01:24:36 +05:30
test setup playwright e2e tests 2021-10-15 17:36:58 +05:30
.browserslistrc added updated files 2021-10-13 22:51:29 +05:30
.env.development app features on/off 2024-07-16 17:26:48 +05:30
.env.development.example app features on/off 2024-07-16 17:26:48 +05:30
.env.production app features on/off 2024-07-16 17:26:48 +05:30
.env.staging app features on/off 2024-07-16 17:26:48 +05:30
.eslintrc.json added updated files 2021-10-13 22:51:29 +05:30
.gitignore remove cypress test artifacts 2021-12-08 23:03:23 +05:30
.gitlab-ci.yml added updated files 2021-10-13 22:51:29 +05:30
.nvmrc session lobby with global chat feature 2024-01-02 02:23:21 +05:30
.prettierrc added updated files 2021-10-13 22:51:29 +05:30
.python-version change to api musician filter to minimize the database queries 2022-10-18 22:07:15 +05:30
README.md wip new session form 2023-10-14 06:56:39 +05:30
cypress.config.js reduce number of sql queries in musicians filter 2022-10-20 17:53:23 +05:30
cypress.env.json auth e2e test 2021-10-13 22:51:30 +05:30
gulpfile.js added updated files 2021-10-13 22:51:29 +05:30
package-lock.json add filestack-js in package.json 2024-09-07 23:35:51 +05:30
package.json add filestack-js in package.json 2024-09-07 23:35:51 +05:30
playwright.config.ts setup playwright e2e tests 2021-10-15 17:36:58 +05:30
server.js added updated files 2021-10-13 22:51:29 +05:30

README.md

JamKazam new react frontend UI/UX

Running react app

In production this React app is supposed to run on beta.jamkazam.com subdomain which is same origin domain to the production Rails app (www.jamkazam.com). This way we utilize same session based user authentication of Rails web app for authenticating users. (It looks for remember_token session cookie in headers and if it is not availale redirect the user to Rails web app sign in page)

The DOMAIN and PORT running this app is defined in env.production file. This file also has env variables for connecting with Rails app. (When setting up in development you can copy the content of env.development.example in to env.development.local and change them according to your host setup)

HOST=beta.jamkazam.local PORT=4000 REACT_APP_CLIENT_BASE_URL=http://www.jamkazam.local:3000 REACT_APP_API_BASE_URL=http://www.jamkazam.local:3000/api

Subdomains setup (development)

You need 2 host records created for React and and Rails app. For example

127.0.0.1 www.jamkazam.local #for Rails app 127.0.0.1 beta.jamkazam.local #for React app

Installing npm dependencies

cd jam-ui npm install

Running the app

cd jam-ui npm run start

This will open it in a borwser window at http://beta.jamkazam.local:3000. Of course for it to work you also need Rails (web) app and websocket app (websocket-gateway) running.