Environment Setup

Before you begin, you will need to install Node.js and npm (which comes with Node.js) on your machine.

Additionally, you will need to create a .env file at the root of the project with the following environment variables:

DATABASE_URL= NEXT_PUBLIC_CAPTCHA_KEY= NEXT_PUBLIC_SLACK_CHANNEL= NEXT_PUBLIC_SLACK_BOT_TOKEN= NEXT_PUBLIC_REGISTER_ISP_URL= NEXT_PUBLIC_REGISTER_ADMIN_URL= NEXT_PUBLIC_GEOLOCATION_API_KEY= NEXT_PUBLIC_SLACK_SIGNING_SECRET=

Installation Instructions

  1. Clone this repository to your local machine:
  2. git clone git@github.com:investtools/ivttoken-project.git
  3. Navigate to the project directory:
  4. cd ivttoken-project
  5. Install the project dependencies:
  6. npm install
  7. Prepare the local database:
  8. npm run database:local:prepare

Running the Project

To run the project locally, use the following command:

npm run dev

The project will run on port 3000 unless you have set a different port in your .env file.

Running the Tests

To run the tests, use the following command:

npm run test

Building the Project

To build the project for production, use the following command:

npm run build

CI/CD

This project uses GitHub Actions to implement a Continuous Integration/Continuous Delivery (CI/CD) pipeline. The pipeline is triggered whenever a new commit is made to the main branch. It installs dependencies, prepares the local database, runs tests, and builds the project for production.

Contribution

Contributions to this project are welcome. To contribute, please fork the repository, make your changes, and submit a pull request.

Contact

If you have any questions or comments about this project, feel free to open an issue!

Code of Conduct

We are committed to fostering a welcoming and inclusive community. Please read our Code of Conduct for more information.