linhnvg / do-next

jewellery artist's portfolio and e-shop

Home Page:https://dovileko.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jeweller's portfolio and e-shop.

Known Vulnerabilities contributions welcome License: MIT

dovileko.com

Main features

  • Payments with stripe.

  • Instant emails with order details for client and owner after successful purchase.

  • Subscription to newsletter.

  • Image processing and resizing before saving to a S3 bucket with sharp.

  • Admin's features:

    • add, edit, delete items or whole collections;
    • change item's availabilities and producing times for made to order items;
    • change front image for item gallery;
    • sort gallery items on a grid for desired looks.

To run locally

You can download this repository or just navigate to your preferred directory in terminal and follow steps below.

git clone https://github.com/g1st/do-next.git
cd do-next
npm install

Now to smoothly start the app you'll need to:

  • install mongodb (if you haven't already) and run mongodb shell locally OR create free cluster at mongodb.com
  • get credentials of any free smtp mail API providers like mailchimp or sendgrid
  • get private and public stripe keys by setting up a stripe account
  • use your free bucket on aws simple storage service.

Then populate .env file with yours.

.env file contains

MONGO_URL=
MAIL_API_PASS=
MAIL_API_USER=
MAIL_HOST=
MAIL_PORT=
STRIPE_SECRET_KEY=
EMAIL=your@email
AWS_ACCESS_KEY_ID=get from aws s3
AWS_SECRET_ACCESS_KEY=get from aws s3

NEXT_PUBLIC_APP_URL=localhost:3000 in dev
NEXT_PUBLIC_AUTH_URL=authentication server url
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
NEXT_PUBLIC_AWS_BUCKET=buckets's url
NEXT_PUBLIC_INSTAGRAM_TOKEN=get from facebook developers

to run in dev

npm run dev

to run in production mode

npm run build
npm start

Note that app use external authentication server for admin's logins. You would need to run this server or use your own in order to login as admin. Server address for development is http://localhost:3030 and can be changed in .env.

Built With

Contributing

Contributions are welcome.

  • Fork the project.
  • Create your feature branch (git checkout -b feature/amazing-feature).
  • Commit your changes (git commit -m 'Add some amazing feature').
  • Push to the branch (git push origin feature/amazing-feature).
  • Open a pull request.

Contact

License

Acknowledgments

About

jewellery artist's portfolio and e-shop

https://dovileko.com

License:MIT License


Languages

Language:JavaScript 99.6%Language:CSS 0.4%