A place for your family photos and videos... Some day!
- Serves SPAs
- Talks GraphQL
- Stores in postgres
- Caches images to WebP (ultra lightweight?)
- Doesn't crash
- Lots of low hanging fruits...
- Make sure your system has
make
,docker
, anddocker-compose
- Run
make demo
from the root of the project and you'll have a demo environment up and running with some sample data
- make
- docker + docker-compose
- yarn
- node
make demo
- Go into the frontend/react folder
yarn install
yarn start
The following is a list of all things required to develop within all parts of motiv.
- docker + docker-compose
- yarn
- node
- rust
- diesel_cli
- postgres client library (required for compilation apparently)
make setup-dev-env
does the following:
- fetches sample data to the backend folder
- sets up a postgres instance via docker
- sets up a sample motiv.toml config file (backend folder)
- builds the frontend (default react, yarn) and backend (rust)
After all those steps have completed, make run
will go into the backend folder and run the server.
You should now be able to visit the (default react) frontend at localhost:5000. There's a graphql-viewer at /graphql as well.
Special thanks to @lucperkins and his repository at https://github.com/lucperkins/rust-graphql-juniper-actix-diesel-postgres