https://github.com/silversonicaxel/unknown-art
unknown art is where you can, hopefully, get in contact with persons, lovers, thinkers, minds or artists, all over the beautiful world.
https://github.com/silversonicaxel/unknown-art
art arty bookshops bookstores independent indie
Last synced: 10 months ago
JSON representation
unknown art is where you can, hopefully, get in contact with persons, lovers, thinkers, minds or artists, all over the beautiful world.
- Host: GitHub
- URL: https://github.com/silversonicaxel/unknown-art
- Owner: silversonicaxel
- Created: 2022-10-30T11:00:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T11:52:06.000Z (about 1 year ago)
- Last Synced: 2025-03-29T13:35:12.828Z (about 1 year ago)
- Topics: art, arty, bookshops, bookstores, independent, indie
- Language: TypeScript
- Homepage: https://www.unknown-art.club/
- Size: 1.86 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# unknown art
[https://unknown-art.club/](https://unknown-art.club/) is the club that will introduce you to arty and independent bookstores, all over the world.
## Technicalities
This is a [Next.js](https://nextjs.org/) application, based on [React.js](https://react.dev/), [Typescript](https://www.typescriptlang.org/) and [CSS Modules](https://github.com/css-modules/css-modules).
`npm` is the package manager used.
First, install the dependencies:
```bash
npm i
```
Then, start the local server:
```bash
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Lint:
```bash
npm run lint
```
Fix:
```bash
npm run fix
```
## Testing
Unit Tests are built with [Vitest](https://vitest.dev/).
```bash
npm run test:unit
```
E2e Tests are built with [Playwright](https://playwright.dev/).
```bash
npm run test:e2e
```
## Development configuration
### .env
`.env` configuration needs to be set on `.env.local`
### MongoDb
#### Option 1: Remote
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
```bash
NEXT_MONGO_DB_URL=mongodb+srv://[MONGODB_USER]:[MONGODB_PASSWORD]@[MONGODB_URL]/
```
#### Option 2: Local with Docker Compose
Set in `.env` the dockerized local configuration
```bash
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:
```bash
docker-compose -f docker-compose.yml [up|down]
```