To get setup, download this code, and then run the following commands in the root directory of the app.
npm install
npm run migrate
npm run seednpm installdownloads all the libraries that we depend on.npm run migratesetups a database for us to use.npm run seedadds some sample data to our database.
Once you have run all of those, we can simply start the app with
npm startThis should start the app, and we can see it by going to http://localhost:3001 in the browser.
To update the application, just change any of the code, save it, and the app should automatically update. Just refresh the page to see the impact of your changes.
If you ever need to reset the database, then:
- stop the app
- delete the
dev.sqlite3file. - run
npm run migrateandnpm run seedagain to re-make and re-populate the database.