To clone and run this application, you'll need Git and Node.js From your command line:
# Clone this repository
$ git clone git@github.com:getcometa/cometa-frontend.git
Prerequisites -
Before you begin, make sure you have the following dependencies installed:
- Node.js (v16 or later)
- npm (v8.6.0 or later)
- vercel cli
To install the required dependencies and set up the project, follow these steps:
Clone the repository or download the zip file to your local machine.
To be able to pull the environment variables for the projects you should get your Vercel token.
Set up your token in the scope for Cometa and set it to never expire, save it to a local .env file at the root of this repository under the variable VERCEL_TOKEN.
If you have a different clone url for cometa (ie, git@github.com-cometa:getcometa/cometa-frontend.git):
- Go to
.git/config - Change the url temporarily to
git@github.com:getcometa/cometa-frontend.git - Finish the steps
- Rollback the url change
Open a terminal and navigate to the root directory of the project. Run the following command to install the dependencies:
npm install
npx playwright installIf you don't have a Vercel account yet or don't plan to have one, you can skip this step by running npm install and setting the VERCEL environment variable to 1.
VERCEL=1 && npm run installRun the script
npm run pull_envsDownload the environment variables for dashboard and guardian-portal and ta-da!
To start the development server and access the project in a web browser, follow these steps:
In the terminal, navigate to the root directory of the project. Run the following command to start the development server for the guardian:
npm run dev:guardianThe project will be available at http://localhost:3000/
To start the development server and access the project in a web browser, follow these steps:
In the terminal, navigate to the root directory of the project.
Run the following command to start the development server for the dashboard:
npm run dev:dashboardThe project will be available at http://localhost:3001/
In .env.development file you can browse all variables related with the enviroment . You can see this file inside each project directory.
#To run all test ejecute on terminal this command ENV=local npx playwright test
To more detailed explanation of how we code and run our tests, visit this wiki https://www.notion.so/cometa/Como-automatizamos-con-playwright-pruebas-de-integraci-n-regresi-n-78d2dcf3f16a4fa4a07375a4661bac41
ENV_PLAYWRIGHT=demo bugster run --path .bugster/tests/portal/payments/pago_colegiatura_kushki_tarjeta_credito.yaml