About • Features • Layout • How it works • Tech Stack • Author
Book Wise - A Full Stack application that allows you to evaluate books and contains social login, is a challenge of the Ignite course of @Rocketseat
- Social login with Google and GitHub
- List Books in a database
- Filter books by categories
- See other users page
- Make evaluations and comments
- Search by book or author names
The application layout is available on Figma:
Before you begin, you will need to have the following tools installed on your machine: Git, Node.js and docker to run a container with MySql. In addition, it is good to have an editor to work with the code like VSCode
Create an .env file to add the environment variables, it should look like this:
To configure NextAuth and yours providers read the documentation
# Database URL to your local database in MySql
DATABASE_URL='mysql://.....'
# Next Auth Configs and providers
# URL of project
NEXTAUTH_URL="http://localhost:3000"
# Random string
NEXTAUTH_SECRET="dawodkiwdjufdkjnfueisfhisjfhsieuhyfhyfthfdgr"
# Following the steps in the NextAuth documentation to configure the providers is a bit of a long explanation :(
# Google Provider
GOOGLE_CLIENT_ID="................"
GOOGLE_CLIENT_SECRET=".............."
# GitHub Provider Configs
GITHUB_CLIENT_ID="..................."
GITHUB_CLIENT_SECRET="................."
Now run the project....
# Clone this repository
$ git clone https://github.com/Artur-Poffo/Book-Wise-Ignite.git
# Access the project folder cmd/terminal
$ cd Book-Wise-Ignite
# install the dependencies
$ npm install
# Run the application in development mode
$ npm run dev
# The server will start at port: 3000 - go to http://localhost:3000
The following tools were used in the construction of the project:
- Next.js
- Typescript
- Prisma ORM
- Axios
- @phosphor-icons
- radix-ui
- stitches
- react-query
- NextAuth
- Zod
See the file package.json
- Artur Poffo - Developer