This is a full stack app built with MongoDB, Node.js and Express and React on the frontend.
The idea for the app came from understanding that I have to many free gift and loyalty stamp cards in my wallet and wanted to make an app to digitise how a cafe or resturant would handle loyalty cards.
I also wanted to take this opertunity to learn the React library.
I also learned how to use Sketch to design how the app should look.
Click on the image below to watch a video walkthough of the app!
As a user:
- I should be able to signup for an account, and then login to the app
- On the homepage, I should see a card with the amount of stamps I have already. If I have 10 stamps, I should see this.
- I should be able to see my account, which has a history of when I got a stamp, and how many cards I have completed.
As an Admin:
- I should login, and go to the admin page.
- I should be able to enter the customers ID and a number of stamps to add to their account
Nice to have:
Clone the repo to your local machine with the command:
git clone https://github.com/benAkehurst/gift-cards.git
-
Run the
npm i
command in the root server file to install the node_modules. -
In a seperate terminal window run
mongod
to run Mongodb locally. -
In the server terminal window, run
npm run start
. This will run nodemon and keep the server running, and restart it when making a changes. -
Now consult the readme for the server for the routes and use postman to check the server is running and responding to requests.
-
Enter the client folder, and then
gift-card
subfolder. -
Run
npm i
to install the node_modules. -
Run
npm start
to serve the react client.
- If you have question or suggestion, please open an issue or a PR.