The Next.js setup for the CROSSIFY platform.
This repository hosts the fullstack code for CROSSIFY. Learn more about CROSSIFY at https://crossify.xyz.
Recommended Editor: VsCode. For the best experience, install the Eslint and Prettier extensions.
Start by setting up your environment:
cp .env.example .envEdit the /.env file with the necessary settings:
ENV=(ordevelopment,productionaccording to your needs)SENDGRID_API_KEY=...MONGO_URI=...SESSION_SECRET=...
GitHub Secrets Configuration: only for maintainers
For automated processes like CI/CD using GitHub Actions:
- Navigate to your GitHub repository and access the
Settingstab. - Locate the
Secretsoption in the left sidebar. - Use the
New repository secretbutton to add new secrets. - Specifically, add secrets for
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY.
# Install dependencies
npm i
# Run the development server
npm run dev
# Run the production server
npm run build
npm startIf you're looking to contribute, consider forking the repo and making pull requests. Ensure your changes align with project standards and expectations.
Fork the repository: Click the "Fork" button on the repository page to create a copy of the repository in your own GitHub account.
git clone https://github.com/your-username/repository-name.git
# Create a new branch: Create a new branch for your changes using the git checkout command.
git checkout -b my-new-branchMake changes locally: Make your changes to the codebase. Ensure your changes align with project standards and expectations.
# Run Build ( as clarified above )
# Locally test using Docker
npm run dockerCommit and push: Commit your changes and push your branch to your fork on GitHub.
# Commit and push to your fork
git add .
git commit -m 'chore: exemple commit'
git push origin my-new-branchCreate a pull request: Go to the original repository page on GitHub and click the "New pull request" button. Select your forked repository and the branch you just pushed to, and click "Create pull request". Add a title and description for your pull request, and click "Create pull request" again to submit it.