PhotoVoyage is an open source web application for hosting photos of any kind can be Travel, countries, Anime, etc. It has a register and login system also with an admin panel to manage the images uploaded on the platform.
Demo: https://photovoyage-main.onrender.com/
> https://github.com/api-tsukasa/PhotoVoyage.git
this step is very important for the bot to work that's why you need git
this step must not be skipped
> npm install
> npm run dev
When you start the server locally, you have to enter the following URL
- http:https://localhost:3000/ - home page
- http:https://localhost:3000/admin - Admin Panel
<?xml version="1.0" encoding="UTF-8"?>
<admins>
<admin>XFkjjp0</admin>
</admins>
The first account with an administrator is called XFkjjp0
but it can be modified until you can add more accounts if you like with the following tag
<admin>account name</admin>
<?xml version="1.0" encoding="UTF-8"?>
<!-- here to make a user mod you have to put this "<mod>user123</mod>" -->
<mods>
<mod>XFkjjp34</mod>
</mods>
-
Middleware Setup: The application sets up middleware for various functionalities such as handling file uploads using Multer, sessions using express-session, etc.
-
Static File Serving: Static files like CSS files are served using express.static middleware for styling the web pages.
-
Session Management: Sessions are managed using express-session middleware. User session data includes information such as username, login status, and isAdmin flag.
-
User Authentication: User registration and login functionality are implemented using bcrypt for password hashing and validation.
-
Photo Upload: Users can upload photos, and the uploaded photo information is stored in a database. Multer middleware is used for handling file uploads.
-
Database Operations: SQLite database is used for storing user and photo information. Database operations are performed using SQLite queries.
-
Error Handling: Error pages are rendered when errors occur during processing requests.
-
Admin Panel: There's an admin panel accessible only to admin users. Admins can view and manage photos, search for photos by ID, view user details, and delete photos.
-
User Management: Admins can view user details and manage users, such as viewing user information and deleting users.
-
Logout: Users can log out of their sessions, and session data is cleared.
-
Active Users: The application keeps track of active users using a Map data structure.
-
Support Links: Support links are provided for GitHub repository and bug reporting.
-
Discord integration: has discord integration through web hook that you can configure in the
.env
file. -
Server Start: The server is started, and console logs provide information about server URLs and support links.
It is an app developed by the sstudios team with the help of some members of photoVoyage that allows you to download official and community translations for the photoVoyage web app The app has two versions that is programmed the first version is the one that is programmed with python and the second is the java both do the same function but you can use it anyone depends on your taste
Repository: https://github.com/PhotoVoyage/PhotoVoyage-languages
The photoVoyage open source platform has official discord integration and everything to do with discord will be in the .env
file.
DISCORD_NOTIFIER_WEBHOOK_URL=YOUR_WEBHOOK_WEB_URL_OF_DISCORD
DISCORD_NOTIFICATIONS_ENABLED=false
DISCORD_LOGGER_WEBHOOK_URL=YOUR_WEBHOOK_WEB_URL_OF_DISCORD
DISCORD_LOGS_ENABLED=false
DISCORD_LOG_INTERVAL=5000
Thank you very much for supporting us in this project ⭐
Thank you very much for helping in the project ❤