Skip to content

Commit 8e58d2f

Browse files
committed
updated readme
1 parent f730597 commit 8e58d2f

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DEBUG=
2+
SECRET_KEY=
3+
PROJECT_NAME=
4+
CORS_ALLOWED_ORIGINS=
5+
POSTGRES_USER=
6+
POSTGRES_PASSWORD=
7+
POSTGRES_SERVER=
8+
POSTGRES_PORT=
9+
POSTGRES_DB=

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
# norebase-challenge
1+
# NOREBASE CHALLENGE API
2+
3+
![alt text](https://github.com/kayprogrammer/norebase-challenge/blob/main/display/show.png?raw=true)
4+
5+
## How to run locally
6+
7+
* Download this repo or run:
8+
```bash
9+
$ git clone git@github.com:kayprogrammer/norebase-challenge.git
10+
```
11+
12+
#### In the root directory:
13+
- Install all dependencies
14+
```bash
15+
$ pip install -r requirements.txt
16+
```
17+
- Create an `.env` file and copy the contents from the `.env.example` to the file and set the respective values. A postgres database can be created with PG ADMIN or psql
18+
19+
- Run Locally
20+
```bash
21+
$ alembic upgrade heads
22+
```
23+
```bash
24+
$ uvicorn app.main:app --reload
25+
```
26+
27+
- Run With Docker
28+
```bash
29+
$ docker-compose up --build -d --remove-orphans
30+
```
31+
OR
32+
```bash
33+
$ make build
34+
```
35+
36+
- Test Coverage
37+
```bash
38+
$ pytest --disable-warnings -vv
39+
```
40+
OR
41+
```bash
42+
$ make test
43+
```
44+
45+
#### LIVE URL [NOREBASE Challenge Documentation](https://norebase-challenge.fly.dev)

display/show.png

84.4 KB
Loading

0 commit comments

Comments
 (0)