Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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`