|
|
1 year ago | |
|---|---|---|
| .vscode | 2 years ago | |
| src | 1 year ago | |
| static | 2 years ago | |
| tests | 1 year ago | |
| .gitignore | 1 year ago | |
| .onedev-buildspec.yml | 1 year ago | |
| .prettierrc | 2 years ago | |
| Dockerfile | 1 year ago | |
| LICENSE | 2 years ago | |
| README.md | 1 year ago | |
| docker-compose.yaml | 2 years ago | |
| maintainers.yaml | 1 year ago | |
| package-lock.json | 1 year ago | |
| package.json | 1 year ago | |
| playwright.config.ts | 1 year ago | |
| postcss.config.js | 2 years ago | |
| svelte.config.js | 1 year ago | |
| tailwind.config.cjs | 2 years ago | |
| tsconfig.json | 2 years ago | |
| vite.config.ts | 1 year ago | |
README.md
Alexandria
Alexandria is a reader and writer for curated publications. For a thorough introduction, please refer to our project documention, viewable on Alexandria.
Issues and Patches
If you would like to suggest a feature or report a bug, or submit a patch for review, please use the Nostr git interface on our homepage.
Developing
Make sure that you have Node.js installed.
Once you've cloned this repo, installed dependencies with:
npm install
then start a development server:
npm run dev
or start the server and open the app in a new browser tab:
npm run dev -- --open
Building
To create a production version of your app, including the static site:
npm run build
You can preview the production build with:
npm run preview
To deploy your app, you may need to install an adapter for your target environment.
Docker
This docker container performs the build.
To build the container:
docker build . -t gc-alexandria
To run the container, in detached mode (-d):
docker run -d --rm --name=gc-alexandria -p 4174:80 gc-alexandria -d
The container is then viewable on your local machine.
If you want to see the container process (assuming it's the last process to start), enter:
docker ps -l
which should return something like:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1d83d736322f gc-alexandria "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 0.0.0.0:4174->80/tcp, [::]:4174->80/tcp gc-alexandria
Testing
These tests are under development, but will run. They will later be added to the container.
To run the Vitest suite we've built, install the program locally and run the tests.
npm run test
For the Playwright end-to-end (e2e) tests:
npx playwright test
