Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bindu-1805/secrets-app
Don't keep your secrets, share them anonymously!
https://github.com/bindu-1805/secrets-app
css ejs javascript oauth2 postgresql
Last synced: 16 days ago
JSON representation
Don't keep your secrets, share them anonymously!
- Host: GitHub
- URL: https://github.com/bindu-1805/secrets-app
- Owner: bindu-1805
- License: mit
- Created: 2024-12-11T08:04:00.000Z (17 days ago)
- Default Branch: master
- Last Pushed: 2024-12-11T08:28:16.000Z (17 days ago)
- Last Synced: 2024-12-11T09:20:40.884Z (17 days ago)
- Topics: css, ejs, javascript, oauth2, postgresql
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting started
1. Clone the repository
```
git clone https://github.com/bindu-1805/Secrets-app.git
```
2. Navigate to the project directory
```
cd Secrets-app
```
3. Install the dependencies
```
npm install
```
4. Use the sql files in this repository to create a database called 'secrets' and a table called 'users' in postgres.
5. Setup your google oauth credentials
6. Create a .env file in your project's directory and add the following
```
GOOGLE_CLIENT_ID="your_client_id"
GOOGLE_CLIENT_SECRET="your_client_secret"
SESSION_SECRET="TOPSECRETWORD"
PG_USER="postgres"
PG_HOST="localhost"
PG_DATABASE="secrets"
PG_PASSWORD="your_db_password"
PG_PORT="5432"
```
7. Start the development server
```
nodemon index.js
```
8. Open your browser to see the result `http://localhost:3000`