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 .env
Edit the /.env
file with the necessary settings:
ENV=
(ordevelopment
,production
according 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
Settings
tab. - Locate the
Secrets
option in the left sidebar. - Use the
New repository secret
button to add new secrets. - Specifically, add secrets for
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
.
# Install dependencies
npm i
# Run the development server
npm run dev
# Run the production server
npm run build
npm start
If 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-branch
Make 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 docker
Commit 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-branch
Create 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.