2024-06-10 12:08:35 +03:00
2024-05-24 11:43:53 +03:00
2024-06-10 12:08:35 +03:00
2024-05-20 11:12:46 +03:00
2024-06-07 00:38:03 +03:00
2024-06-10 12:08:35 +03:00
2024-04-25 11:17:26 +03:00
2024-02-21 22:36:33 +02:00
2024-05-24 11:43:53 +03:00
2024-02-21 18:29:37 +02:00
2024-06-07 00:38:03 +03:00
2024-06-07 00:38:03 +03:00

Nowdatabase

NOW - New and Old Worlds - Database of fossil mammals

Rebuild of a fossil database application, old version at https://nowdatabase.luomus.fi/

The new version is not deployed yet.


Developer documentation

Basic commands 💻

  • npm run dev
    • Uses docker-compose.dev.yml
    • Run in development mode: with hot reload
  • npm run check
    • Runs tsc and eslint for frontend and backend: Use this to check for errors before committing, if you feel like it.
  • npm run start:anon
    • Uses docker-compose.anon.yml
    • Runs the app with anonymized test-database. Make cypress-tests using this version
  • npm test
    • Runs cypress-tests in headless mode, same as in GitHub Actions. Requires the above command to be ran first.
  • npm run cypress
    • Opens cypress. You can run tests and see what they do.
  • npm start
    • Uses docker-compose.yml
    • This builds the code and runs it. Mostly you'll want to use this after major technical changes to check the code works also in production mode, before deploying. And then you'll likely want to do: npm start -- --build to force rebuild of containers.

Further documentation

📂 Documentation-directory has documentation for developers. Remember to update it if you modify something important like project architecture.

🚀 Initialize app & restore db How to get the app up & running, and initialize database from sql-dumps

🔧 Technical explanations Explanations of how things work, and guides for some more rare tasks like generating sequelize models.

🙌 Contributing & integration flow Where to commit? Where are tests run? How is the code deployed?

🔩 Typing the API How to bring types from backend to frontend

📝 Frontend Explanation of the frontend logic and how to add views

🔎 Validators The readme explains how validators are written

🔎 Class diagram See the relations of relevant tables. Notice that it omits some unimportant tables and does not show most columns.

S
Description
No description provided
Readme MIT
16 MiB
Languages
TypeScript 92.9%
JavaScript 5.6%
CSS 0.6%
Dockerfile 0.5%
PHP 0.3%
Other 0.1%