Simple inventory management system
These steps might get you up and running:
- Install PostgreSQL by running
brew install postgresql
. - Optionally, make PostgreSQL start at boot, with
brew services start postgresql
. - Install the migrate CLI with
brew install golang-migrate
. - Create the parts database with
createdb parts
(or whatever you want to call the database). - Run
psql parts -c 'select version();'
to verify that PostgreSQL is up and running, and that the database exists. - Clone the
parts
repository withgit clone [email protected]:kluzzebass/parts.git
- Set up the required environment variables, either in the shell, or by creating
a
.env
file in the cloned repository. The only variable needed right now isDB_URL=postgresql://localhost/parts?sslmode=disable
. - Run
./migrate.sh up
to bootstrap an empty database. - Run
./run.sh
to start the server and hithttp://localhost:8080/
with a browser to activate the GraphQL Playground. - If any of these steps fail, view it as an exercise in trouble shooting and figure it out by yourself. What am I, your mother?
I don't know what to do here, but it's probably really difficult and/or annoying.
If you're using Linux, I bet you're 31337 enough to figure it out by looking at the MacOS instructions.