Giter Club home page Giter Club logo

photoworld's Introduction

Photoworld

A simple apps that can manage image portfolio, that have admin cms. This app is showing the ease of use Next.js with instagram style modal routing. You can view the demo here.

Here some screenshot:

Screenshot 1

Screenshot 1

Screenshot 2

Screenshot 2

Features

  1. Admin Page
    • Authentication
    • Categories Master
    • Pictures Master
  2. Main Page
    • Home
    • Gallery
    • About

to do

  1. Add view count on each picture
  2. Add share button
  3. Add dashboard metrics: most viewed pictures, most share pictures
  4. Add config to change page logo and page background

Example Routing With Next.js Router

Example 1:

<Link key={name} href={`/Category/[catId]?catId=${name}`} as={`/Category/${name}`}>
 <a className={`category-link ${active}`}>{name}</a>
</Link>

Example 2:

<Link
 key={item.pic_id}
 href={`/Category/[catId]?catId=${query.catId}&id=${item.pic_id}`}
 as={`/Pictures/${item.pic_id}`}
>
 {content}
</Link>

Dependecies

  1. Ant Design React
  2. MomentJS
  3. NextJS
  4. react-cookies
  5. react-lazy-load-image-component
  6. react-masonry-css

Environment Variable

API_URL=http://localhost/portfolio-admin/

change env variables with your own backend url

How To Setup Your Backend

  1. setup auth for login with username and password as parameters, then return token to client
  2. check all services folder for url path and api parameters

List Backend Routes

Auth

  1. Auth/authenticate
  2. Auth/validateToken

Categories

  1. Categories/list
  2. Categories/save
  3. Categories/remove
  4. Categories/activeList

Pictures

  1. Pictures/list
  2. Pictures/save
  3. Pictures/remove
  4. Pictures/activeList
  5. Pictures/loadByCategory
  6. Pictures/detail

How To Run

  1. Clone this repository
  2. Run npm install or yarn install on project root
  3. Run npm run dev or yarn dev and go to http://localhost:3000/

Build

Run npm run build or yarn build

Run For Production

Run npm run start or yarn start after build

MIT License

Copyright (c) 2020 Benny

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

photoworld's People

Contributors

conquera99 avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

photoworld's Issues

Server Error

Hi, getting a server error on start... Are you planning to update this? Or if you know anything like this that would be a good starting point?

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.