Clone the repo locally:
git clone https://github.com/smartcrash/liboards.git
cd liboards
Setup the GraphQL server:
npm i # Install NPM dependencies
cp .env.example .env # Setup configuration
# Run the dev server (the output will give the address)
npm start
On another terminal setup and start the client:
cd ./client # Go to the client's source folder
npm i
cp .env.example .env
npm run dev # Run the dev server (the output will give the address)
You're ready to go! Visit Liboards in your browser (default to http://localhost:3000), and create an account.
I suggest to run your test in a sqlite in memory database, for this you need to create a .env.test
file with the following:
DB_CONNECTION=sqlite
DB_DATABASE=:memory:
And with that you are ready to go and run some tests.
- To run e2e tests (with Cypress) execute:
npm run cypress # or cypress:open
- To run integration tests (with Japa) execute:
npm test
- And finally run run unit tests (using vitest) for the React components execute:
cd ./client
npm tests