A Fullstack web application that allows employees to submit feedback. Integration with TypeScript, SQLite, Next.js, and Prisma.
- The user needs to authenticate with GitHub to create a new feedback.
- The application composes of the
Reviews
andDrafts
area. - When the user sent feedback, they can have a draft and decide to publish it later on.
- The user can delete their posts from both
Reviews
andDrafts
area.
- Dynamic API Routes
- Web app
- Align React App with Chakra UI
- Server-side Rendering with Next.js
- Integrate Prisma to store our users and their sessions in SQLite database
- Concern the authentication with NextAuth.js
- E2E Testing
- End to End tests with Cypress testing framework
- Clone the project repository:
git clone [email protected]:ytliuSVN/next-crud.git
- Navigate to the project folder:
cd next-crud
- Install all the dependencies of project:
yarn install
- Start the app in the development mode:
yarn dev
Open http://localhost:3000 with your browser to see the result.
Copy and setup environment. An example .env
:
SECRET=RANDOM_STRING
GITHUB_ID=
GITHUB_SECRET=
There are two ways you can run the test:
Opens the Cypress Test Runner in the browser.
yarn cypress:open
Runs Cypress tests to completion.
yarn cypress:run