https://unknown-art.club/ is the club that will introduce you to arty and independent bookstores, all over the world.
This is a Next.js application, based on React.js, Typescript and CSS Modules.
npm
is the package manager used.
First, install the dependencies:
npm i
Then, start the local server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Lint:
npm run lint
Fix:
npm run fix
Unit Tests are built with Vitest.
npm run test:unit
E2e Tests are built with Playwright.
npm run test:e2e
.env
configuration needs to be set on .env.local
Mongodb security settings for local development require an IP whitelist to work.
Network Access -> IP Access List -> 0.0.0.0/0
Set in .env
the remote configuration
NEXT_MONGO_DB_URL=mongodb+srv://[MONGODB_USER]:[MONGODB_PASSWORD]@[MONGODB_URL]/
Set in .env
the dockerized local configuration
NEXT_MONGO_DB_URL="mongodb://myUser:myPassword@localhost:27017/"
You can use Docker Compose to run a MongoDB instance for local development.
First, make sure you have Docker and Docker Compose installed on your machine.
Then, you can start and afterwards end the MongoDB instance with the following command:
docker-compose -f docker-compose.yml [up|down]