This project is a really simple version of our production tech stack. It has:
- frontend: a React SPA
- backend: a NestJS API & SQLite database
- node (any fairly recent version should be fine)
- (optional) a REST client for running
.restfiles - just an easy way to call the API.- see Calling the API
From the root of this repo, run the setup.sh script.
This will install dependencies and setup the SQLite database.
To run the the nest app and the react app respecitively, run
npm run dev --prefix ./backend
npm run dev --prefix ./frontendYou should now see the react app running on port 3001, and the nest app running on port 3000.
Everything should now 'just work'... but just to make sure, you can check the following:
TODO - add some useful tests.
Inside the autogen/rest directory, you should find a collection of sample requests.
These should be callable from inside most IDEs:
Alternatively, you could use the information in those files to call the API using curl or Postman.