Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karmek-k/k-and-a
🤔 K&A - Kuestion and Answer
https://github.com/karmek-k/k-and-a
Last synced: 3 days ago
JSON representation
🤔 K&A - Kuestion and Answer
- Host: GitHub
- URL: https://github.com/karmek-k/k-and-a
- Owner: karmek-k
- License: agpl-3.0
- Created: 2020-11-29T14:27:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-29T17:00:50.000Z (over 3 years ago)
- Last Synced: 2023-06-30T14:32:55.149Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 252 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k-and-a
K&A - Kuestion and Answer!
A Q&A app, inspired by [ask.fm](https://ask.fm).This repo contains K&A's backend API source code.
## Installation
In order to install dependencies and use this API,
you will have to have node.js and npm installed.Clone the repo and install dependencies:
```
git clone https://github.com/karmek-k/k-and-a
cd k-and-a
npm install
```To create configuration, rename `.env.example` to `.env` and edit this file (the following commands use `nano` as the code editor):
```
mv .env.example .env
nano .env
```Alternatively, if you're using a PaaS like Heroku, just inspect the .env.example file and set environment variables accordingly.
Now that you have installed dependencies and set configuration, you can run the server:
```
npm run start
```You can also watch for changes while the server is running:
```
npm run start:dev
```Now, you should be able to navigate to `http://localhost:port`,
where `port` is either 8000 or the `PORT` environment variable.
If you haven't changed it, just go to [http://localhost:8000](http://localhost:8000).