Triplog is a small blogging application written in React which uses the Google Maps API to log about an adventure on the road.
Node.js and npm are essential to deploy and use triplog. Get it from here. Triplog was built on the LTS version (16.13.3 at the time of this writing) but also worked on the (by the time of this writing) 17.0.x version.
You may verify your node version by running node -v
and npm -v
for the node package manager.
triplog's backend runs on Google's Firebase. Be sure you own an account.
- Create a new Firebase-Project. You may discard the Google Analytics features.
- Register a new Web-App and save your app's Firebase configuration. You'll be able to see those configurations on your Firebase project settings.
- Set up Firebase Authentication and activate the native E-mail/Password sign-in method.
- Add the Cloud Firestore database.
You will need a Google Maps API Key. Follow this guide on how to create one.
- Clone this repo into a new folder (e.g.,
my-triplog
)
git clone [email protected]:marcsoler/triplog.git my-triplog
cd my-triplog
npm install
- Copy the
.env.example
file on the same directory and name it as.env
and add your Firebase and Google Maps credentials here. - The application should be able to run successfully. Start it with
npm start
- To deploy the app to Firebase, I recommend the Firebase CLI. Check their documentation here.
The user's administration role must be set in the Firestore Cloud directly. Once you've created your account, go to the
users
' collection, and setadmin
to true.
- User module
- Auth system
- Blog CRUD
- Posts & Pictures
- Live/Draft status
- Route module
- Google Maps API implementation
- Defining a route
- Security
- Roles (admin/user/anonymous)
- Comment module
- Reactions
- Moderation by admin
In the project directory, you can run:
Runs the app in the development mode. Open https://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Launches cypress.io e2e test runner on the terminal
Launches the cypress.io e2e test runner in the interactive watch mode.
Builds the app for production to the build
folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.