https://github.com/aashish47/vocabulary
Application to store vocabulary using Nextjs server-actions.
https://github.com/aashish47/vocabulary
nextjs prisma server-actions server-components supabase tailwind vocabulary
Last synced: 7 months ago
JSON representation
Application to store vocabulary using Nextjs server-actions.
- Host: GitHub
- URL: https://github.com/aashish47/vocabulary
- Owner: aashish47
- Created: 2024-02-10T16:05:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T20:42:55.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T00:28:52.793Z (over 1 year ago)
- Topics: nextjs, prisma, server-actions, server-components, supabase, tailwind, vocabulary
- Language: TypeScript
- Homepage: https://vocab47.vercel.app
- Size: 228 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vocabulary
Build vocabulary by adding new words you come across every day.

## Installation
### Prerequisites
Before you begin, ensure you have met the following requirements:
- **Node.js**: Version 20.11.1 (Download and install [Node.js](https://nodejs.org/) if you haven't already)
### Clone the repository
```bash
git clone https://github.com/aashish47/vocabulary.git
```
### Setting up Supabase and Google Auth
Before running the project, you'll need to set up Supabase for database management and Google Auth for user authentication. Follow these steps to configure Supabase and obtain the necessary keys:
1. **Set up Supabase Project and Google Auth**:
- Create a Supabase project and enable Google Auth.
- Obtain the Supabase project URL, API key, Google Client ID, and Client Secret.
- Add `http://localhost:3000` as an allowed redirect URL in Supabase Auth settings. (authentication -> url configuration -> site url)
For detailed instructions, refer to the [Supabase Authentication Guide](https://supabase.com/docs/guides/auth/auth-deep-dive/auth-google-oauth).
### Rename `.env.example` and `.env.local.example` files
1. Rename `.env.local.example` to `.env.local` and add the required keys.
2. Rename `.env.example` to `.env` and add the required keys.
Required keys will be available at project settings -> configuration -> configuration -> Api and -> Database
Once you have obtained the necessary keys and configured Supabase and Google Auth, add them to your project's environment variables.
### Install dependencies
```bash
cd vocabulary
npm install
```
### Generate prisma client
```bash
cd vocabulary
npx prisma generate
```
### Run the application
```bash
cd vocabulary
npm run dev
```
Open `http://localhost:3000` with your browser to see the result.
## Contribution
Contributions to Finance Tracker are welcome! If you find any bugs or have suggestions for new features, please open an issue or submit a pull request. See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.