Giter Site home page Giter Site logo

do-next's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.