App developed with Next.js to create and organize bookmarks, using openai to autocomplete forms.
- [Required] Next.js
- [Required] Prisma
- [Required] PostgreSQL
- [Required] OpenAI
- [Required] Tailwindcss
- [Required] Next Auth
- [Required] Git
- [Required] NPM
- [Required] Node.js
- [Required] Github app for auth
- Localhost http://localhost:3000
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run lint |
Run eslint to find problems in the code |
You must to have a file in the root, named .env with the next variables:
PORT=3000
AUTH_SECRET="YOUR_AUTH_SECRET"
AUTH_GITHUB_ID="YOUR_GITHUB_ID"
AUTH_GITHUB_SECRET="YOUR_GITHUB_SECRET"
DATABASE_URL="YOUR_POSTGRESQL_URL"
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
NODE_ENV=['development'|'production']
Then run the next commands:
npm install
npx prisma migrate dev --name init
npm start
By default, the service is going to be exposed on http://localhost:3000
.