mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
968 B
968 B
Initializing the application
Setup DB restore 💿
- Make an empty directory
sqlfilesinsidedatafolder which is in the repository root. - Place the database dump files
now_test.sql,now_log_test.sqlandnow_view.sqlinside it. - Notice, that the container will have to be able to read these files and execute
data/restore_and_create_user.sql, so you may have to adjust the necessary rights depending on your operating system.
See technical explanations for how this works.
Init the project 🚀
- Make copies of
.env.templateand.env.dev.template. Name the copies.envand.dev.env. npm installin project root to install the eslint & prettier packagesnpm run devto run it - requires docker compose installed.- Check if it worked: The docker logs should have a line saying database connection works. Open
localhost:5173in browser to check if frontend works and shows data.