Skip to content

Latest commit

 

History

History

web

Sabiá Website

Table of Contents

Running the Web Server

  1. Copy the .env.example to .env and replace the variables values.
  2. Make sure you have started the API server.
  3. Start the server: npm run dev (npm run start for production mode).
  4. The website will be available at: http://localhost:8000.

Running the Tests

Unit Tests

The web project includes unit and snapshot tests. In order to run the unit tests, run npm run jest. This script will run the tests and generate the code coverage.

You can run npm run jest:watch to watch files for changes and rerun tests related to changed files or if you want to update the snapshot files.

E2E Tests

This project also includes E2E Tests. Take a look at the main README file to learn how to achieve it.

Running Storybook

Run npm run storybook to have storybook setup locally. The server will be available at http://localhost:9009.

Create Next App

This project was bootstrapped with Create Next App.