Skip to content

taydeo/Authority-React

 
 

Repository files navigation

Authority: React Port

Realizing the limitations of PHP, and the advantages of moving to an React-Express framework (not to mention just moving to JavaScript entirely), I have opened this repository with the intentions on porting my political game. Anybody is allowed to commit, as long as they follow what CONTRIBUTING.md reads.

For a brief description of what Authority is (or, truthfully, I hope it to be):

Authority is an indev. political game in which users can register as a politician, run for offices, run countries, play a vital part in the economic system within their countries (and others), and seize power through a variety of methods; legal, or illegal.

Installation

  1. Clone the repository. Make a fork if you plan to contribute.
  2. Install Node.js, and make sure to add it to your PATH if operating on Windows.
  3. CD into the repository you cloned in Step 1.
  4. Run npm installin terminal/command prompt
  5. Wait for packages and dependencies to install.
  6. Look at env_example and make a copy of it.
  7. Rename it .env, replace any necessary values. Most importantly, set up your SQL connection. Did I mention this is using SQL yet? No? Oops. Stay mad, Mongoists!
  8. Set up SQL via scripts under sql/. It doesn't matter the order, but execute sql_schema.sql first.
  9. After setting up your .env file and SQL database, run npm startfor production, and npm run devfor development.
  10. There you go! Should work, and you should be all ready to develop (and commit plz I'm lonely)
  11. If you want working image upload, you will have to create a firebase bucket and put the details in a file called firebaseConfig.json.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.8%
  • CSS 6.3%
  • HTML 1.9%