Explore and test your global capital knowledge with the World Capital Quiz! This interactive platform challenges you to identify country capitals from around the world. See how well you know these capitals in this engaging quiz!
The following technologies and tools were used to develop this project:
- HTML
- CSS
- JavaScript
- Node.js
- Express.js
- postgreSQL
- EJS (Embedded JavaScript)
Follow these steps to get the project up and running on your local machine for development and testing:
Make sure you have the following requirements met:
- Latest version of npm, Node.js, and postgreSQL installed.
- Windows/Linux/Mac machine.
To run World Capital Quiz locally, follow these steps:
-
Clone the repository
git clone https://github.com/username/projectname.git
-
Move into the project directory
cd projectname
-
Install the dependencies
npm install
-
Create a database named
world
and a table namedcountries
. -
Import the
capitals.csv
file into thecountries
table. -
Configure the database by filling in the
password
inindex.js
on line 12:const db = new pg.Client({ user: "postgres", host: "localhost", database: "world", password: "", port: 5432, });
-
Run the application:
node index.js
-
Open your web browser and navigate to
http://localhost:3000
to access the website.
Contributions to this projects are welcome! To contribute, follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make changes and commit them:
git commit -m "Add your commit message here"
-
Push your changes to your branch:
git push origin feature/your-feature-name
-
Create a pull request on the main repository.
Please follow the project's coding guidelines and maintain a clean commit history.
This website is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or feedback, feel free to reach out to me at therahman14@gmail.com. I'm excited to hear from you and make this project even better!