"Did You Buy It?" is a shopping list app designed to help people keep track of stuff they need to buy.
To get started on developing this project firs you need to do
git clone https://github.com/gigili/did-you-buy-it-api
cd did-you-buy-it-api
composer install
Then rename .env.example
into .env
file and fill in all the values.
- Start up docker containers
docker-compose up
To run the migration you need the byjg/migration
and/or byjg/migration-cli
package which gets installed when you
run composer install
.
To set up your database to handle migrations check the install section below, or if you need to reset the migrations table check the Reset section
php vendor/bin/migrate install
php vendor/bin/migrate reset
php vendor/bin/migrate up
php vendor/bin/migrate down
On Windows machines you need the php
prefix before calling the vendor/bin/migrate
. You might also need to pass
in the postgres
connection string in your command which looks like:
pgsql://postgres:postgres@localhost/dybi -vvv
where -vvv
indicates verbose output of the migrate command.
//TODO
- I've set up a virtual host on my machine to be able to easily run the app
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/Projects/did-you-buy-it-api"
ServerName dybi.local
ServerAlias www.dybi.local
ErrorLog "/Projects/did-you-buy-it-api/logs/error.log"
CustomLog "/Projects/did-you-buy-it-api/logs/access.log" common
<Directory "/Projects/did-you-buy-it-api">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Don't forget to add
127.0.0.1 dybi.local
127.0.0.1 www.dybi.local
this to your hosts file
/etc/hosts
on Linux / OSx andC:\Windows\System32\drivers\etc\hosts
on Windows
- Login
- Register
- Send an activation email
- Activate user account
- Lists
- Create list
- Update list
- Delete list
- List users that have access to the list
- Allow other users access to the list
- Remove users from the list
- Autocomplete endpoint for when adding users ?
- List items
- Add list item
- Add images
- Update list item
- Mark item as bought
- Send notification to other users of the list
- Mark item as bought
- Delete list item
- Add / remove images
- Add list item
- User profile
- Edit profile
- Delete profile
- Send an email notification that the account has been closed
- Reset password
Thanks goes to these wonderful people (emoji key):
Sebastian |
This project follows the all-contributors specification. Contributions of any kind welcome!