Bygg en SaaS-tjänst för att kunder ska kunna hantera sina epost-listor. Vi kommer ha 2 roller av användare, kunder och prenumeranter, där en kund kan se en lista med uppgifter prenumeranter som har valt att prenumerera på deras nyhetsbrev.
- Make sure you have Docker Desktop installed and running
git clone https://github.com/Medieinstitutet/uppgift-2-thejoltjoker.git
cd uppgift-2-thejoltjoker
- Paste .env file into root folder
./vendor/bin/sail up
- Open new terminal window, cd to root folder and run:
./vendor/bin/sail artisan migrate:fresh --seed
npm install
npm run dev
- Open
http://localhost/
in a browser window
GET /
Home page
GET /register
Register accountPOST /users
Store a new userGET /login
Login to existing accountPOST /logout
Log out of existing accountPOST /clear-sessions
Clear all user sessionsPOST /users/authenticate
Authenticate userGET /forgot-password
Request password resetPOST /forgot-password
Send password reset emailGET /reset-password/{token}
Show reset password formPOST /reset-password
Reset password
GET /newsletters
List all newsletters when not signed inGET /dashboard/newsletters
List all newslettersGET /dashboard/newsletters/create
Create newsletterPOST /dashboard/newsletters
Store newsletterGET /dashboard/newsletters/{id}/edit
Edit newsletterPUT /dashboard/newsletters/{id}
Update newsletterDELETE /dashboard/newsletters/{id}
Delete newsletterGET /dashboard/newsletters/{id}/subscribers
List subscribers of a newsletterPOST /dashboard/newsletters/{id}/subscribers
Subscribe to a newsletterDELETE /dashboard/newsletters/{id}/subscribers
Unsubscribe from a newsletter
GET /dashboard/subscriptions
List user subscriptionsPOST /dashboard/subscriptions
Store a new subscriptionDELETE /dashboard/subscriptions
Remove a subscription
GET /dashboard/subscribers
List user subscribers
GET /dashboard/profile
User profileGET /unauthorized
403 UnauthorizedGET /not-found
404 Not Found