Giter Club home page Giter Club logo

menfess-oprec24's Introduction

What The Technologies

How To Use

1. First, you need clone this repository

git clone https://github.com/kungs66/anonymous-messages-website.git

after clone the repository, run command

npm install

2. Edit the /firebase.js file:

...

const firebaseConfig = {
  ...
};

...

you need make firebase application to get the firebase config, go to https://firebase.google.com and following the step

3. Create realtime database

Set the database location, I used United States (us-central1)

4. Edit rules of realtime database, change the rules read and write to true

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

5. Import the /Basics-database.json file to realtime database
q: why import this file to firebase realtime database?
a: because when import the json file to firebase realtime database, data on the database will fill of basics data, if not import json file to database, the website will error while fetch the data from database.

6. Don't worry, you can edit the Name display on the website and edit the Dice data
go to the admin page https://your-url.com/the-admin-page-for-answer-the-question

7. Edit url the admin page edit the name of folder:

./anonymous-messages-website/
│
├── pages/
│   ├── the-admin-page-for-answer-the-question/ <-- Edit this folder name
|   |   ├── index.jsx
|   |   ├── Name.jsx
|   |   └── Random.jsx
│   ├── _app.js
│   └── index.jsx

after you edit the folder name, you have to edit the variable in 3 files, open ../pages/the-admin-page-for-answer-the-question/index.jsx , ../pages/the-admin-page-for-answer-the-question/Name.jsx and ../pages/the-admin-page-for-answer-the-question/Random.jsx

...

const Dashboard = ({ onClick }) => {
  ...

  const url = "the-admin-page-for-answer-the-question"; <-- Edit this variable same with name of folder

  ...

}

Important: after you edit them, don't share the url or folder name, because is a admin page

Support me with buy me a coffee because there are still many updates in the future
Thanks You🤗

BuyMeACoffee Ko-Fi

menfess-oprec24's People

Contributors

syuhendar729 avatar

Watchers

 avatar

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.