A place for Creators to get paid for their content ๐ฐ. Companies don't only look for big influencers but also micro influencers. Join the platform and let them find you!
All contributions welcome, not just code.
- NextJS (AppRouter)
- Prisma
- Postgres
- LinkedIn OAuth
This environment is fully on your computer and requires each dependency to be installed and set up, but it gives you the most flexibility for customisation.
NodeJS, Postgres and LinkedIn OAuth
- Copy
.env.example
to.env
and fill out the parameters.- For LinkedIn parameters, create a developer app here.
ENVIRONMENT VARIABLE | EXAMPLE VALUE | DESCRIPTION |
---|---|---|
DATABASE_URL | postgresql://postgres:password@localhost:5432/contentcreator?schema=public | Connection url to your Postgres database |
NEXTAUTH_URL | http://localhost:3000 | Url to your app |
NEXTAUTH_SECRET | abcdefg | Random string |
LINKEDIN_CLIENT_ID | abcd1234efgh5678 | This is generated by the LinkedIn OAuth app |
LINKEDIN_CLIENT_SECRET | WER.asdflkjlkj234ljljjhg.asdf324jhghjg== | This is generated by the LinkedIn OAuth app |
LinkedIn OAuth Details (click to expand)
Authorized redirect URLs for your apphttp://localhost:3000/api/auth/callback/linkedin
![LinkedIn OAuth screenshot of settings](https://private-user-images.githubusercontent.com/624760/340106052-c61a50eb-363e-4dcb-b208-405e256f7238.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMjc5NTAsIm5iZiI6MTcyNDMyNzY1MCwicGF0aCI6Ii82MjQ3NjAvMzQwMTA2MDUyLWM2MWE1MGViLTM2M2UtNGRjYi1iMjA4LTQwNWUyNTZmNzIzOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMlQxMTU0MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YzMwODZiMmJjZGIwMDJmMmE3NjhiNGI1ZDUwOTE2OTE5M2ExNWQwYmJiYjM5M2Y0MDliNGRmMWM5MGZhNjFmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-FCOyMiAQD3tTr-v_XQBpChWtZMIULnjza41h7ZBfz8)
- Install the dependencies using
npm ci
from the package lock file (do not usenpm install
unless for a specific reason). - Ensure your Postgres server is running on
localhost:5432
with the default username andPOSTGRES_PASSWORD
set aspassword
. To start a Postgres server using Docker and Compose, usedocker compose -f postgres.compose.yaml up
. - Create the database tables by running
npm run db:dev:migrate
(for production, usenpm run db:prod:migrate
). - Seed the database by inserting example data with
npm run db:dev:seed
(if you need to reset the database, usenpm run db:dev:reset
). - Start the local development server with
npm run dev
.
This will allow you to use your favorite IDE without having to install any dependencies on your computer.
Docker and Docker Compose
- Clone the repository and navigate to the root of the directory.
- Copy
.env.example
to.env
and fill out the parameters. Please refer to the Environment Variables section.- For LinkedIn parameters, create a developer app here.
- There is no need to change the Postgres URL as it's already set in the compose.yaml file.
- Run
docker compose up
. - In your browser, go to
localhost:3000
, and you should see the project up and running.
Discord http://discord.eddiehub.org